Bug fixes for GCP modules (#51574)

This commit is contained in:
Alex Stephen 2019-01-31 14:03:24 -08:00 committed by ansibot
parent 6a79468acf
commit 2b0f16443c
10 changed files with 69 additions and 62 deletions

View file

@ -297,7 +297,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, 'sql#operation')
op_result = fetch_resource(module, op_uri, 'sql#operation', False)
status = navigate_hash(op_result, ['status'])
return op_result