From 94b4ef4950974421f64419adbaacbff8b8993269 Mon Sep 17 00:00:00 2001 From: jopemachine Date: Mon, 6 Jan 2025 01:44:51 +0000 Subject: [PATCH] fix: Merge --- src/ai/backend/manager/models/gql_models/image.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ai/backend/manager/models/gql_models/image.py b/src/ai/backend/manager/models/gql_models/image.py index 663c26b847..0496b386b0 100644 --- a/src/ai/backend/manager/models/gql_models/image.py +++ b/src/ai/backend/manager/models/gql_models/image.py @@ -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, @@ -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