From 5325d3a0b9bb1099dfe2b59183ef4930d3d09dcf Mon Sep 17 00:00:00 2001 From: mpuittinen Date: Mon, 24 Jul 2017 10:42:48 +0300 Subject: [PATCH] Fix #3979. CLI option aws-profile overrides AWS_PROFILE env var --- lib/plugins/aws/provider/awsProvider.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plugins/aws/provider/awsProvider.test.js b/lib/plugins/aws/provider/awsProvider.test.js index f4b8e7705..12bb50f07 100644 --- a/lib/plugins/aws/provider/awsProvider.test.js +++ b/lib/plugins/aws/provider/awsProvider.test.js @@ -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();