Skip to content

Commit

Permalink
fix: docker version strings
Browse files Browse the repository at this point in the history
the previous iteration broke when the image string contains a colon in
the registry to configure the registry port
  • Loading branch information
PhilTaken committed Sep 21, 2023
1 parent 72c2aa9 commit 47d690f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/batou_ext/oci.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ def configure(self):
"WARN: you might want to specify the registry explicitly unless you really intend to log into the default docker registry"
)

parts = self.image.split(":")

if len(parts) > 1:
self.version = parts[1]
else:
if self.version:
self.image = f"{self.image}:{self.version}"

if self.registry_address and not self.image.startswith(
Expand Down

0 comments on commit 47d690f

Please sign in to comment.