Fix #3979. CLI option aws-profile overrides AWS_PROFILE env var

This commit is contained in:
mpuittinen 2017-07-24 10:42:48 +03:00
parent 4e96ea77c4
commit 5325d3a0b9

View File

@ -461,6 +461,7 @@ describe('AwsProvider', () => {
});
it('should get credentials when profile is provied via --aws-profile option', () => {
process.env.AWS_PROFILE = 'envDefault';
newAwsProvider.options['aws-profile'] = 'notDefault';
const credentials = newAwsProvider.getCredentials();