diff --git a/utils/oscap_docker_python/oscap_docker_util.py b/utils/oscap_docker_python/oscap_docker_util.py index 0a29db6a6a..81b13d8aa6 100644 --- a/utils/oscap_docker_python/oscap_docker_util.py +++ b/utils/oscap_docker_python/oscap_docker_util.py @@ -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...")