joyent/node-triton#201 Assuming an RBAC role in triton CLI v5 throws error

Reviewed by: Julien Gilli <julien.gilli@joyent.com>
This commit is contained in:
Trent Mick 2017-08-08 16:52:42 -07:00
parent c56d0a25da
commit 9d8681a21b
2 changed files with 6 additions and 0 deletions

View File

@ -7,9 +7,13 @@ Known issues:
## not yet released
- [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.
- [joyent/node-triton#217] `triton volume ls -l` should output a `RESOURCE`
column.
## 5.3.0
- [joyent/node-triton#173], [joyent/node-triton#174] and

View File

@ -62,6 +62,7 @@ var PROFILE_FIELDS = {
keyId: true,
insecure: true,
user: true,
roles: true,
actAsAccount: true
};
@ -234,6 +235,7 @@ function validateProfile(profile, profilePath) {
profile.name === 'env' ? 'TRITON_USER or SDC_USER'
: 'profile.user');
assert.optionalString(profile.actAsAccount, 'profile.actAsAccount');
assert.optionalArrayOfString(profile.roles, 'profile.roles');
} catch (err) {
var msg = format('invalid %sprofile%s: %s',
profile.name ? '"' + profile.name + '" ' : '',