Skip to content

Commit 062e051

Browse files
committed
fix: using location and project parsed from resource name if not provided
1 parent 6332d33 commit 062e051

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

google/cloud/aiplatform/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5240,8 +5240,8 @@ def __init__(
52405240
# Create ModelRegistry with the unversioned resource name
52415241
self._registry = ModelRegistry(
52425242
self.resource_name,
5243-
location=location,
5244-
project=project,
5243+
location=location or self.location,
5244+
project=project or self.project,
52455245
credentials=credentials,
52465246
)
52475247

0 commit comments

Comments
 (0)