diff --git a/plugins/modules/gcp_spanner_database.py b/plugins/modules/gcp_spanner_database.py index 1ce4fb3..0b54f49 100644 --- a/plugins/modules/gcp_spanner_database.py +++ b/plugins/modules/gcp_spanner_database.py @@ -186,8 +186,7 @@ def create(module, link): def update(module, link): - delete(module, self_link(module)) - create(module, collection(module)) + module.fail_json(msg="Spanner objects can't be updated to ensure data safety") def delete(module, link): diff --git a/plugins/modules/gcp_spanner_instance.py b/plugins/modules/gcp_spanner_instance.py index 9cfd81b..764214f 100644 --- a/plugins/modules/gcp_spanner_instance.py +++ b/plugins/modules/gcp_spanner_instance.py @@ -202,8 +202,7 @@ def create(module, link): def update(module, link): - auth = GcpSession(module, 'spanner') - return wait_for_operation(module, auth.patch(link, resource_to_update(module))) + module.fail_json(msg="Spanner objects can't be updated to ensure data safety") def delete(module, link): diff --git a/plugins/modules/gcp_sql_database.py b/plugins/modules/gcp_sql_database.py index 398d28c..f1d5512 100644 --- a/plugins/modules/gcp_sql_database.py +++ b/plugins/modules/gcp_sql_database.py @@ -187,8 +187,7 @@ def create(module, link, kind): def update(module, link, kind): - auth = GcpSession(module, 'sql') - return wait_for_operation(module, auth.put(link, resource_to_request(module))) + module.fail_json(msg="SQL objects can't be updated to ensure data safety") def delete(module, link, kind): diff --git a/plugins/modules/gcp_sql_instance.py b/plugins/modules/gcp_sql_instance.py index c8ba028..49a0828 100644 --- a/plugins/modules/gcp_sql_instance.py +++ b/plugins/modules/gcp_sql_instance.py @@ -763,8 +763,7 @@ def create(module, link, kind): def update(module, link, kind, fetch): - auth = GcpSession(module, 'sql') - return wait_for_operation(module, auth.put(link, resource_to_request(module))) + module.fail_json(msg="SQL objects can't be updated to ensure data safety") def delete(module, link, kind, fetch):