mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 01:44:03 -07:00
Use connect_to_aws where possible
`connect_to_aws` fixes a bug with security tokens in AWS. Modules should use that rather than calling `boto.x.connect_to_region`
This commit is contained in:
parent
be19982313
commit
52accd7d1f
9 changed files with 10 additions and 15 deletions
|
@ -585,7 +585,7 @@ def main():
|
|||
|
||||
try:
|
||||
if region:
|
||||
iam = boto.iam.connect_to_region(region, **aws_connect_kwargs)
|
||||
iam = connect_to_aws(boto.iam, region, **aws_connect_kwargs)
|
||||
else:
|
||||
iam = boto.iam.connection.IAMConnection(**aws_connect_kwargs)
|
||||
except boto.exception.NoAuthHandlerFound, e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue