1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fix for iam (#23347)

* fix for iam

* Update iam.py

removed extra space
This commit is contained in:
MaciejCetler 2017-06-28 17:11:19 +02:00 committed by Sloane Hertel
parent d5f4c2a54b
commit 0d179c77a7

View file

@ -510,6 +510,8 @@ def create_role(module, iam, name, path, role_list, prof_list, trust_policy_doc)
instance_profile_result = iam.create_instance_profile(name, instance_profile_result = iam.create_instance_profile(name,
path=path).create_instance_profile_response.create_instance_profile_result.instance_profile path=path).create_instance_profile_response.create_instance_profile_result.instance_profile
iam.add_role_to_instance_profile(name, name) iam.add_role_to_instance_profile(name, name)
else:
instance_profile_result = iam.get_instance_profile(name).get_instance_profile_response.get_instance_profile_result.instance_profile
except boto.exception.BotoServerError as err: except boto.exception.BotoServerError as err:
module.fail_json(changed=changed, msg=str(err)) module.fail_json(changed=changed, msg=str(err))
else: else: