Skip to content

Commit

Permalink
fix: Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jan 13, 2025
1 parent e709668 commit e6f8a51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ai/backend/manager/models/gql_models/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ def from_row(
return None
image_ref = row.image_ref
version, ptag_set = image_ref.tag_set
return cls(

result = cls(
id=row.id,
row_id=row.id,
name=row.image,
Expand Down Expand Up @@ -499,6 +500,9 @@ def from_row(
aliases=[alias_row.alias for alias_row in row.aliases],
)

result.permissions = [] if permissions is None else permissions
return result

@classmethod
def from_legacy_image(
cls, row: Image, *, permissions: Optional[Iterable[ImagePermission]] = None
Expand Down

0 comments on commit e6f8a51

Please sign in to comment.