Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c163cb3

Browse filesBrowse files
fix: allow empty location for cluster update (#1258)
Fixes #15311 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent db8d528 commit c163cb3
Copy full SHA for c163cb3

1 file changed

+5-3Lines changed: 5 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/google-cloud-bigtable/google/cloud/bigtable
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/google-cloud-bigtable/google/cloud/bigtable/cluster.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-bigtable/google/cloud/bigtable/cluster.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +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 = client.instance_admin_client.common_location_path(
515-
client.project, self.location_id
516-
)
514+
location = None
515+
if self.location_id:
516+
location = client.instance_admin_client.common_location_path(
517+
client.project, self.location_id
518+
)
517519

518520
cluster_pb = instance.Cluster(
519521
location=location,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.