use env profile for integration tests
This commit is contained in:
parent
04c7b638d7
commit
e5c5f2d54c
@ -215,7 +215,10 @@ CLI.prototype.init = function (opts, args, callback) {
|
||||
});
|
||||
self.log.trace({config: config}, 'loaded config');
|
||||
|
||||
var profileName = opts.profile || config.profile || 'env';
|
||||
var profileName = opts.profile ||
|
||||
config.profile ||
|
||||
process.env.TRITON_PROFILE ||
|
||||
'env';
|
||||
var profile = mod_config.loadProfile({
|
||||
configDir: self.configDir,
|
||||
name: profileName
|
||||
|
@ -75,6 +75,7 @@ function triton(args, cb) {
|
||||
PATH: process.env.PATH,
|
||||
HOME: process.env.HOME,
|
||||
SSH_AUTH_SOCK: process.env.SSH_AUTH_SOCK,
|
||||
TRITON_PROFILE: 'env',
|
||||
SDC_URL: CONFIG.url,
|
||||
SDC_ACCOUNT: CONFIG.account,
|
||||
SDC_KEY_ID: CONFIG.keyId,
|
||||
|
Reference in New Issue
Block a user