Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
[ansible] stop some async errors from being suppressed (#314)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and rambleraptor committed Jul 17, 2019
1 parent b8802f9 commit 4e8fe73
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_redis_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def wait_for_operation(module, response):
return {}
status = navigate_hash(op_result, ['done'])
wait_done = wait_for_completion(status, op_result, module)
raise_if_errors(op_result, ['error'], module)
raise_if_errors(wait_done, ['error'], module)
return navigate_hash(wait_done, ['response'])


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def wait_for_operation(module, response):
return {}
status = navigate_hash(op_result, ['done'])
wait_done = wait_for_completion(status, op_result, module)
raise_if_errors(op_result, ['error'], module)
raise_if_errors(wait_done, ['error'], module)
return navigate_hash(wait_done, ['response'])


Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_spanner_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def wait_for_operation(module, response):
return {}
status = navigate_hash(op_result, ['done'])
wait_done = wait_for_completion(status, op_result, module)
raise_if_errors(op_result, ['error'], module)
raise_if_errors(wait_done, ['error'], module)
return navigate_hash(wait_done, ['response'])


Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_spanner_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def wait_for_operation(module, response):
return {}
status = navigate_hash(op_result, ['done'])
wait_done = wait_for_completion(status, op_result, module)
raise_if_errors(op_result, ['error'], module)
raise_if_errors(wait_done, ['error'], module)
return navigate_hash(wait_done, ['response'])


Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/google/gcp_tpu_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def wait_for_operation(module, response):
return {}
status = navigate_hash(op_result, ['done'])
wait_done = wait_for_completion(status, op_result, module)
raise_if_errors(op_result, ['error'], module)
raise_if_errors(wait_done, ['error'], module)
return navigate_hash(wait_done, ['response'])


Expand Down

0 comments on commit 4e8fe73

Please sign in to comment.