mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-06-03 07:29:10 -07:00
Ansible Projects (#116)
<!-- This change is generated by MagicModules. --> /cc @rambleraptor
This commit is contained in:
parent
ff78ac3b85
commit
5e762dc9a1
42 changed files with 123 additions and 112 deletions
|
@ -575,8 +575,6 @@ def wait_for_completion(status, op_result, module):
|
|||
while status != 'DONE':
|
||||
raise_if_errors(op_result, ['error', 'errors'], 'message')
|
||||
time.sleep(1.0)
|
||||
if status not in ['PENDING', 'RUNNING', 'DONE']:
|
||||
module.fail_json(msg="Invalid result %s" % status)
|
||||
op_result = fetch_resource(module, op_uri, 'compute#operation')
|
||||
status = navigate_hash(op_result, ['status'])
|
||||
return op_result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue