fix gcp_spanner_database delete

gcp_spanner_database erroneously used LRO handling on delete,
rather than a standard synchronous function. One side effect
was not catching 404s as a not found error code.
This commit is contained in:
Yusuke Tsutsumi 2022-11-20 07:20:36 +00:00 committed by Yusuke Tsutsumi
parent 50076e7f36
commit 44eb7c2d29
2 changed files with 2 additions and 3 deletions

View file

@ -286,7 +286,7 @@ def extra_statements_update(module, request, response):
def delete(module, link):
auth = GcpSession(module, 'spanner')
return wait_for_operation(module, auth.delete(link))
return return_if_object(module, auth.delete(link))
def resource_to_request(module):

View file

@ -1,2 +1 @@
cloud/gcp
unsupported