mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[AWS] Allow the profile to take precedence to allow better compatibility between ~/.boto and ~/.aws/credential files (#45806)
This commit is contained in:
parent
4ec2423a04
commit
e1aa05bf9a
1 changed files with 1 additions and 0 deletions
|
@ -285,6 +285,7 @@ def get_aws_connection_info(module, boto3=False):
|
|||
boto_params['verify'] = validate_certs
|
||||
|
||||
if profile_name:
|
||||
boto_params = dict(aws_access_key_id=None, aws_secret_access_key=None, aws_session_token=None)
|
||||
boto_params['profile_name'] = profile_name
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue