Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/confcom/azext_confcom/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/confcom/azext_confcom/template_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down