diff --git a/ansible/collections/ansible_collections/nhsd/apigee/plugins/action/deploy_spec.py b/ansible/collections/ansible_collections/nhsd/apigee/plugins/action/deploy_spec.py index ea2ae7fc..3145ef51 100644 --- a/ansible/collections/ansible_collections/nhsd/apigee/plugins/action/deploy_spec.py +++ b/ansible/collections/ansible_collections/nhsd/apigee/plugins/action/deploy_spec.py @@ -59,7 +59,7 @@ def run(self, tmp=None, task_vars=None): json=spec_resource, status_code=[200, 502], ) - if response_dict["status_code"] != 502: + if response_dict["response"]["status_code"] != 502: break # Yet another partially broken API... # Let's honour apigee's request to wait 30s before retry.