Reviewed by: Julien Gilli <julien.gilli@joyent.com>
This commit is contained in:
Trent Mick 2017-02-17 17:17:51 -08:00
parent ec9b6cc5aa
commit 4ee67a5725

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright 2016 Joyent, Inc.
* Copyright 2017 Joyent, Inc.
*/
/*
@ -61,7 +61,8 @@ var PROFILE_FIELDS = {
account: true,
keyId: true,
insecure: true,
user: true
user: true,
actAsAccount: true
};
@ -232,6 +233,7 @@ function validateProfile(profile, profilePath) {
assert.optionalString(profile.user,
profile.name === 'env' ? 'TRITON_USER or SDC_USER'
: 'profile.user');
assert.optionalString(profile.actAsAccount, 'profile.actAsAccount');
} catch (err) {
var msg = format('invalid %sprofile%s: %s',
profile.name ? '"' + profile.name + '" ' : '',