Skip to content

Commit 06b9370

Browse files
Update google/cloud/bigtable/cluster.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent e6dc163 commit 06b9370

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

google/cloud/bigtable/cluster.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,11 @@ def delete(self):
511511
def _to_pb(self):
512512
"""Create cluster proto buff message for API calls"""
513513
client = self._instance._client
514+
location = None
514515
if self.location_id:
515516
location = client.instance_admin_client.common_location_path(
516517
client.project, self.location_id
517518
)
518-
else:
519-
location = None
520519

521520
cluster_pb = instance.Cluster(
522521
location=location,

0 commit comments

Comments
 (0)