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 (#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>
  • Loading branch information
tremble authored Aug 11, 2022
1 parent 4c67633 commit e265ece
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 e265ece

Please sign in to comment.