diff --git a/CHANGES.md b/CHANGES.md index 4d36359..5e3bb57 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,9 @@ Known issues: ## not yet released +- [joyent/node-triton#222] Fix the matching environment variable for the + `triton -r,--role ROLE ...` option to be `TRITON_ROLE` instead of + `MANTA_ROLE`. - [joyent/node-triton#201] Fix `triton -r,--role ROLE ...` option for taking up an RBAC role. This was introduced in v4.12.0 and was accidentally broken in v5.0.0. diff --git a/lib/cli.js b/lib/cli.js index ed9e41e..2b868e5 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -5,7 +5,7 @@ */ /* - * Copyright 2016 Joyent, Inc. + * Copyright (c) 2017, Joyent, Inc. * * The `triton` CLI class. */ @@ -104,9 +104,9 @@ var OPTIONS = [ { names: ['role', 'r'], type: 'arrayOfCommaSepString', - env: 'MANTA_ROLE', + env: 'TRITON_ROLE', help: 'Assume an RBAC role. Use multiple times or once with a list', - helpArg: 'ROLE,ROLE,...' + helpArg: 'ROLE,...' }, { names: ['keyId', 'k'],