Skip to content

Commit

Permalink
Fix multiple tags for an image
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrancato authored Nov 2, 2024
1 parent 9538c5e commit b6d47d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@ 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 b6d47d1

Please sign in to comment.