fix: allow to set a name via pm2 link

This commit is contained in:
Unitech 2018-07-20 15:51:24 +02:00
parent 4e79da1caa
commit ebffb609cf

View File

@ -104,7 +104,7 @@ module.exports = function(CLI) {
CLI.prototype.link = function(infos, cb) {
var that = this;
if (infos && !infos.name)
if (infos && !infos.machine_name)
infos.machine_name = require('os').hostname() + '-' + require('crypto').randomBytes(2).toString('hex')
KMDaemon.launchAndInteract(cst, infos, function(err, dt) {