Skip to content

Commit 4a4a6b6

Browse files
committed
Fixed validation
1 parent b2ae762 commit 4a4a6b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

google/cloud/aiplatform/models.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1539,13 +1539,12 @@ def update(
15391539
ValueError: If `labels` is not the correct format.
15401540
"""
15411541

1542-
if labels:
1543-
utils.validate_labels(labels)
1544-
15451542
current_model_proto = self.gca_resource
15461543
update_mask: List[str] = []
15471544

15481545
if display_name:
1546+
utils.validate_display_name(display_name)
1547+
15491548
current_model_proto.display_name = display_name
15501549
update_mask.append("display_name")
15511550

0 commit comments

Comments
 (0)