From 9526a5b70a2129577fb2f364166fe1e1a2159ef2 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Thu, 11 Aug 2022 17:34:58 +0200 Subject: [PATCH] acm_certificate - allow for a retry on the _info call after uploading 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 This commit was initially merged in https://github.com/ansible-collections/community.aws See: https://github.com/ansible-collections/community.aws/commit/e265ece597eb6a48269a7f5169f2a7561e9412d7 --- .../targets/acm_certificate/tasks/full_acm_test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/targets/acm_certificate/tasks/full_acm_test.yml b/tests/integration/targets/acm_certificate/tasks/full_acm_test.yml index a02b07b3a37..5cbd156dd70 100644 --- a/tests/integration/targets/acm_certificate/tasks/full_acm_test.yml +++ b/tests/integration/targets/acm_certificate/tasks/full_acm_test.yml @@ -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: