joyent/node-triton#222 use TRITON_ROLE instead of MANTA_ROLE env var

Reviewed by: Julien Gilli <julien.gilli@joyent.com>
This commit is contained in:
Trent Mick 2017-08-09 11:02:26 -07:00
parent c7bb6b01e1
commit 7728c02afe
2 changed files with 6 additions and 3 deletions

View File

@ -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.

View File

@ -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'],