We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c2ea4c commit e6dc163Copy full SHA for e6dc163
google/cloud/bigtable/cluster.py
@@ -511,9 +511,12 @@ 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
- )
+ if self.location_id:
+ location = client.instance_admin_client.common_location_path(
+ client.project, self.location_id
517
+ )
518
+ else:
519
+ location = None
520
521
cluster_pb = instance.Cluster(
522
location=location,
0 commit comments