From e35032650624d660002c7f747e07e94f87cd722e 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 (cherry picked from commit e265ece597eb6a48269a7f5169f2a7561e9412d7) --- tests/integration/targets/aws_acm/tasks/full_acm_test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/targets/aws_acm/tasks/full_acm_test.yml b/tests/integration/targets/aws_acm/tasks/full_acm_test.yml index a02b07b3a37..5cbd156dd70 100644 --- a/tests/integration/targets/aws_acm/tasks/full_acm_test.yml +++ b/tests/integration/targets/aws_acm/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: