Bug fixes for GCP modules (#51573)

This commit is contained in:
Alex Stephen 2019-01-31 14:03:38 -08:00 committed by ansibot
parent 2b0f16443c
commit 27c5e38e10
24 changed files with 42 additions and 53 deletions

View file

@ -556,7 +556,7 @@ def wait_for_completion(status, op_result, module):
while status != 'DONE':
raise_if_errors(op_result, ['error', 'errors'], module)
time.sleep(1.0)
op_result = fetch_resource(module, op_uri, 'compute#operation')
op_result = fetch_resource(module, op_uri, 'compute#operation', False)
status = navigate_hash(op_result, ['status'])
return op_result