mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 00:16:49 +00:00
[AWS] Allow the profile to take precedence to allow better compatibility between ~/.boto and ~/.aws/credential files (#45806)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user