diff --git a/CHANGES.md b/CHANGES.md index 5ab65cd..6d1f281 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,9 @@ ## 4.1.0 (not yet released) +- [joyent/node-triton#73] `triton instance list --credentials` to include + "metadata.credentials" in instance listing. + - node-triton#35 More easily distinguish KVM and LX and Docker images and instances. diff --git a/lib/do_instance/do_list.js b/lib/do_instance/do_list.js index fbf3cd2..adbdbf0 100644 --- a/lib/do_instance/do_list.js +++ b/lib/do_instance/do_list.js @@ -65,6 +65,9 @@ function do_list(subcmd, opts, args, callback) { callback(e); return; } + if (opts.credentials) { + listOpts.credentials = true; + } var imgs; @@ -143,6 +146,13 @@ do_list.options = [ names: ['help', 'h'], type: 'bool', help: 'Show this help.' + }, + { + names: ['credentials'], + type: 'bool', + help: 'Include generated credentials, in the "metadata.credentials" ' + + 'keys, if any. Typically used with "-j", though one can show ' + + 'values with "-o metadata.credentials".' } ].concat(common.getCliTableOptions({ includeLong: true,