We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db8d528 commit c163cb3Copy full SHA for c163cb3
packages/google-cloud-bigtable/google/cloud/bigtable/cluster.py
@@ -511,9 +511,11 @@ def delete(self):
511
def _to_pb(self):
512
"""Create cluster proto buff message for API calls"""
513
client = self._instance._client
514
- location = client.instance_admin_client.common_location_path(
515
- client.project, self.location_id
516
- )
+ location = None
+ if self.location_id:
+ location = client.instance_admin_client.common_location_path(
517
+ client.project, self.location_id
518
+ )
519
520
cluster_pb = instance.Cluster(
521
location=location,
0 commit comments