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

[aws] Simplify conditional in iam_cert module (#41691)

This commit is contained in:
Ryan Brown 2018-06-19 14:28:43 -04:00 committed by Sloane Hertel
parent 0713925f3d
commit fd8cc775a7

View file

@ -155,7 +155,7 @@ def dup_check(module, iam, name, new_name, cert, orig_cert_names, orig_cert_bodi
elif slug_cert.startswith(slug_orig_cert_bodies): elif slug_cert.startswith(slug_orig_cert_bodies):
update = True update = True
break break
elif slug_orig_cert_bodies != slug_cert: else:
module.fail_json(changed=False, msg='A cert with the name %s already exists and' module.fail_json(changed=False, msg='A cert with the name %s already exists and'
' has a different certificate body associated' ' has a different certificate body associated'
' with it. Certificates cannot have the same name' % orig_cert_names[c_index]) ' with it. Certificates cannot have the same name' % orig_cert_names[c_index])