diff --git a/src/confcom/azext_confcom/container.py b/src/confcom/azext_confcom/container.py index 1d18856d4a2..8819ff65d6d 100644 --- a/src/confcom/azext_confcom/container.py +++ b/src/confcom/azext_confcom/container.py @@ -314,7 +314,7 @@ def __init__( ) -> None: self.containerImage = containerImage if ":" in containerImage: - self.base, self.tag = containerImage.split(":") + self.base, self.tag = containerImage.split(":", 1) else: self.base, self.tag = containerImage, "latest" self._environmentRules = environmentRules diff --git a/src/confcom/azext_confcom/template_util.py b/src/confcom/azext_confcom/template_util.py index d5cff78dbe3..66ea51218b8 100644 --- a/src/confcom/azext_confcom/template_util.py +++ b/src/confcom/azext_confcom/template_util.py @@ -36,6 +36,10 @@ def get_image_info(progress, message_queue, client, tar_mapping, image): image_info = None raw_image = None image_name = f"{image.base}:{image.tag}" + if len(image.tag.split(":")) > 1: + eprint( + f"The image name: {image.tag} cannot have the digest present to use a tarball as the image source" + ) # only try to grab the info locally if that's absolutely what # we want to do if tar_mapping: