Skip to content

Commit

Permalink
fix: Merged
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Oct 8, 2024
1 parent 3baad04 commit a21dd4f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ai/backend/agent/docker/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,16 +1256,14 @@ async def scan_images(self) -> Mapping[str, str]:
if repo_tag.endswith("<none>"):
continue
try:
ImageRef.parse_image_str(repo_tag, "*")
except (InvalidImageName, InvalidImageTag) as e:
ImageRef(repo_tag, ["*"])
except ValueError:
if repo_tag not in self.checked_invalid_images:
log.warning(
"Image name {} does not conform to Backend.AI's image naming rule. This image will be ignored. Details: {}",
"Image name {} does not conform to Backend.AI's image naming rule. This image will be ignored.",
repo_tag,
e,
)
self.checked_invalid_images.add(repo_tag)
continue

img_detail = await docker.images.inspect(repo_tag)
labels = img_detail["Config"]["Labels"]
Expand Down

0 comments on commit a21dd4f

Please sign in to comment.