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:
parent
0713925f3d
commit
fd8cc775a7
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
update = True
|
||||
break
|
||||
elif slug_orig_cert_bodies != slug_cert:
|
||||
else:
|
||||
module.fail_json(changed=False, msg='A cert with the name %s already exists and'
|
||||
' has a different certificate body associated'
|
||||
' with it. Certificates cannot have the same name' % orig_cert_names[c_index])
|
||||
|
|
Loading…
Reference in a new issue