mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 01:14:03 -07:00
fixes #12831 by updating the boto iam connection method to connect_to_region
This commit is contained in:
parent
aa887ce49f
commit
9fe689eaec
3 changed files with 4 additions and 3 deletions
|
@ -574,7 +574,7 @@ def main():
|
|||
region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module)
|
||||
|
||||
try:
|
||||
iam = boto.iam.connection.IAMConnection(**aws_connect_kwargs)
|
||||
iam = boto.iam.connect_to_region(region, **aws_connect_kwargs)
|
||||
except boto.exception.NoAuthHandlerFound, e:
|
||||
module.fail_json(msg=str(e))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue