Skip to content

Commit de0b11f

Browse files
committed
Fixed getting the class name.
1 parent ab5c444 commit de0b11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/aiplatform/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ def to_dict(self) -> Dict[str, Any]:
677677
def _generate_display_name(cls, prefix: Optional[str] = None) -> str:
678678
"""Returns a display name containing class name and time string."""
679679
if not prefix:
680-
prefix = cls.name
680+
prefix = cls.__name__
681681
return prefix + " " + datetime.datetime.now().isoformat(sep=" ")
682682

683683

0 commit comments

Comments
 (0)