Skip to content

Commit bf6c249

Browse files
author
Matthew Fisher
committed
Revert "fix(controller): more image parsing fixes"
This reverts commit 7756f8ad7b2cdbb4f45dd32c06c2966b2b87ef83.
1 parent 7d06fbd commit bf6c249

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

controller/registry/private.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,10 @@ def publish_release(source, config, target):
2323
contains the new configuration as ENV entries.
2424
"""
2525
try:
26-
if source.count('/') == 2:
27-
# image comes from private registry
26+
if source.count(':') == 2:
2827
src_image = source.rsplit(':', 1)[0].split('/', 1)[1]
2928
src_tag = source.split(':')[2]
30-
elif source.count('/') == 1 and source.count(':') == 1:
31-
# image comes from dockerhub, includes tag
32-
src_image = source.split(':')[0]
33-
src_tag = source.split(':')[1]
3429
else:
35-
# image comes from dockerhub, no tag
3630
src_image = source
3731
src_tag = 'latest'
3832
target_image = target.rsplit(':', 1)[0]

0 commit comments

Comments
 (0)