diff --git a/lib/config.js b/lib/config.js index 7ea03dd..f1cae3f 100644 --- a/lib/config.js +++ b/lib/config.js @@ -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 + '" ' : '',