Skip to content

Commit b58d585

Browse files
committed
fix tests
Signed-off-by: Jeev B <jeevb@users.noreply.github.com>
1 parent d900748 commit b58d585

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/flyte/_internal/imagebuild/image_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ class ImageBuildEngine:
142142
@staticmethod
143143
@alru_cache
144144
async def image_exists(image: Image) -> Optional[str]:
145-
assert image.name is not None, f"Image name is not set for {image}"
145+
if image.name is None:
146+
logger.debug(f"Image {image} has no name. Skip existence check.")
147+
return image.uri
146148

147149
tag = image._final_tag
148150

0 commit comments

Comments
 (0)