From 277ec6ba8d1cdda7f8fdf11eb9d9d33c2c095d65 Mon Sep 17 00:00:00 2001 From: Unitech Date: Thu, 26 Jul 2018 17:27:31 +0200 Subject: [PATCH] fix: pm2 plus + register --- lib/API/pm2-plus/PM2IO.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/API/pm2-plus/PM2IO.js b/lib/API/pm2-plus/PM2IO.js index 3e7ebd807..f57cb6cdc 100644 --- a/lib/API/pm2-plus/PM2IO.js +++ b/lib/API/pm2-plus/PM2IO.js @@ -151,7 +151,14 @@ module.exports = function(CLI) { }).then(res => { const bucket = res.data.bucket console.log(chalk.bold.green('[+] Bucket created!')) - self.link(bucket, () => { + + var connection_info = { + public_key: bucket.public_id, + secret_key: bucket.secret_id, + pm2_version: pkg.version + } + + self.link(connection_info, () => { finalize(bucket) }) })