Skip to content

Commit

Permalink
[aws] Simplify conditional in iam_cert module (ansible#41691)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansb authored and s-hertel committed Jun 19, 2018
1 parent 0713925 commit fd8cc77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/amazon/iam_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit fd8cc77

Please sign in to comment.