Skip to content

Commit

Permalink
fix: harbor v2 scanner skipping items (#2015)
Browse files Browse the repository at this point in the history
Backported-from: main (24.09)
Backported-to: 24.03
  • Loading branch information
kyujin-cho committed Apr 16, 2024
1 parent d893b12 commit 5a99253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/2015.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix harbor v2 image scanner skipping importing rest of the artifacts when any of the item does not include tag
2 changes: 1 addition & 1 deletion src/ai/backend/manager/container_registry/harbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ async def _scan_image(
try:
if not image_info["tags"] or len(image_info["tags"]) == 0:
skip_reason = "no tag"
return
continue
tag = image_info["tags"][0]["name"]
match image_info["manifest_media_type"]:
case self.MEDIA_TYPE_OCI_INDEX:
Expand Down

0 comments on commit 5a99253

Please sign in to comment.