From e6dc163dbff3d9ff522bae17c7d30f4ee92c580d Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Fri, 16 Jan 2026 11:04:25 -0800 Subject: [PATCH 1/2] fix: allow empty location for cluster update --- google/cloud/bigtable/cluster.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/google/cloud/bigtable/cluster.py b/google/cloud/bigtable/cluster.py index 11fb5492d..859b693d7 100644 --- a/google/cloud/bigtable/cluster.py +++ b/google/cloud/bigtable/cluster.py @@ -511,9 +511,12 @@ def delete(self): def _to_pb(self): """Create cluster proto buff message for API calls""" client = self._instance._client - location = client.instance_admin_client.common_location_path( - client.project, self.location_id - ) + if self.location_id: + location = client.instance_admin_client.common_location_path( + client.project, self.location_id + ) + else: + location = None cluster_pb = instance.Cluster( location=location, From 06b9370ac90fab4af703e414914432eb82f725be Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Tue, 27 Jan 2026 15:37:18 -0800 Subject: [PATCH 2/2] Update google/cloud/bigtable/cluster.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- google/cloud/bigtable/cluster.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/google/cloud/bigtable/cluster.py b/google/cloud/bigtable/cluster.py index 859b693d7..967ec707e 100644 --- a/google/cloud/bigtable/cluster.py +++ b/google/cloud/bigtable/cluster.py @@ -511,12 +511,11 @@ def delete(self): def _to_pb(self): """Create cluster proto buff message for API calls""" client = self._instance._client + location = None if self.location_id: location = client.instance_admin_client.common_location_path( client.project, self.location_id ) - else: - location = None cluster_pb = instance.Cluster( location=location,