From 02e90c02aeddf4d45bedb3f973abc5255578d7a8 Mon Sep 17 00:00:00 2001 From: Johnny Green Date: Fri, 5 Nov 2021 16:25:38 -0400 Subject: [PATCH] fixes issue where you could not execute init or keygen because arg instance is not passed --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 211795d..9704cad 100755 --- a/cli.js +++ b/cli.js @@ -176,7 +176,7 @@ try { * @type {import('yargs').MiddlewareFunction} */ function configure(argv) { - const instance = argv.instances ? argv.instances[String(argv.instance)] : {}; + const instance = argv.instances && typeof argv.instances[String(argv.instance)] !== 'undefined' ? argv.instances[String(argv.instance)] : {}; // Required for API commands (versions, job) argv.username = process.env.DW_USERNAME || instance.username || argv.username;