Skip to content

Commit

Permalink
fix: allow to set a name via pm2 link
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Jul 20, 2018
1 parent 4e79da1 commit ebffb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API/pm2-plus/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ebffb60

Please sign in to comment.