Skip to content

Commit

Permalink
fix: Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jan 14, 2025
1 parent f6cee3d commit 5ef0604
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 @@ -471,7 +471,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 @@ -500,6 +501,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 5ef0604

Please sign in to comment.