Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions google/cloud/bigtable/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,11 @@ 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
)
location = None
if self.location_id:
location = client.instance_admin_client.common_location_path(
client.project, self.location_id
)

cluster_pb = instance.Cluster(
location=location,
Expand Down
Loading