Skip to content

Commit

Permalink
acm_certificate - allow for a retry on the _info call after uploading…
Browse files Browse the repository at this point in the history
… a cert (ansible-collections#1405)

acm_certificate - allow for a retry on the _info call after uploading a cert

SUMMARY
We're sometimes hitting a race condition where we call _info before the APIs are ready to return details of the cert.
In a perfect world we'd add some waiters, but let's prevent unrelated failures when modifying amazon.aws module_utils first
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
acm_certificate
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@e265ece
  • Loading branch information
tremble authored and github-actions[bot] committed Oct 27, 2023
1 parent b97267e commit 9526a5b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@
tags:
Name: '{{ chained_cert.name }}'
register: check_chain
until:
- check_chain.certificates | length >= 1
retries: 5
delay: 2
- name: check chain of cert we just uploaded
assert:
that:
Expand Down

0 comments on commit 9526a5b

Please sign in to comment.