mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Fix #3979. CLI option aws-profile overrides AWS_PROFILE env var
This commit is contained in:
parent
4e96ea77c4
commit
5325d3a0b9
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user