Skip to content

Commit

Permalink
Merge pull request #2172 from mbrancato/fix_multiple_image_tags
Browse files Browse the repository at this point in the history
Fix multiple tags for an image
  • Loading branch information
jan-cerny authored Nov 13, 2024
2 parents e0e1789 + 9fae7c8 commit 1191fc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/oscap_docker_python/oscap_docker_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def __init__(self, target, is_image=False, oscap_binary='oscap'):

if self.is_image:
self.image_name, self.config = self._get_image_name_and_config(target)
if "," in self.image_name:
# Fix when a single image has multiple tags
self.image_name = self.image_name.split(",")[0]
if self.image_name:
print("Creating a temporary container for the image...")

Expand Down

0 comments on commit 1191fc7

Please sign in to comment.