Skip to content

Commit

Permalink
Merge pull request #18 from johnnygreen/bugfix/cannot-execute-init-or…
Browse files Browse the repository at this point in the history
…-keygen

fixes issue where you could not execute init or keygen because arg in…
  • Loading branch information
davidmerrique authored Dec 29, 2021
2 parents e8b480e + 02e90c0 commit a4aa683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4aa683

Please sign in to comment.