joyent/node-triton#176 triton --act-as
option was broken by joyent/node-triton#156
Reviewed by: Julien Gilli <julien.gilli@joyent.com>
This commit is contained in:
parent
ec9b6cc5aa
commit
4ee67a5725
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2016 Joyent, Inc.
|
* Copyright 2017 Joyent, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -61,7 +61,8 @@ var PROFILE_FIELDS = {
|
|||||||
account: true,
|
account: true,
|
||||||
keyId: true,
|
keyId: true,
|
||||||
insecure: true,
|
insecure: true,
|
||||||
user: true
|
user: true,
|
||||||
|
actAsAccount: true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -232,6 +233,7 @@ function validateProfile(profile, profilePath) {
|
|||||||
assert.optionalString(profile.user,
|
assert.optionalString(profile.user,
|
||||||
profile.name === 'env' ? 'TRITON_USER or SDC_USER'
|
profile.name === 'env' ? 'TRITON_USER or SDC_USER'
|
||||||
: 'profile.user');
|
: 'profile.user');
|
||||||
|
assert.optionalString(profile.actAsAccount, 'profile.actAsAccount');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
var msg = format('invalid %sprofile%s: %s',
|
var msg = format('invalid %sprofile%s: %s',
|
||||||
profile.name ? '"' + profile.name + '" ' : '',
|
profile.name ? '"' + profile.name + '" ' : '',
|
||||||
|
Reference in New Issue
Block a user