Skip to content

Commit

Permalink
Fixed validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmkc committed Jan 13, 2022
1 parent b2ae762 commit 4a4a6b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions google/cloud/aiplatform/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,13 +1539,12 @@ def update(
ValueError: If `labels` is not the correct format.
"""

if labels:
utils.validate_labels(labels)

current_model_proto = self.gca_resource
update_mask: List[str] = []

if display_name:
utils.validate_display_name(display_name)

current_model_proto.display_name = display_name
update_mask.append("display_name")

Expand Down

0 comments on commit 4a4a6b6

Please sign in to comment.