docker: fix failing in case of empty image tag

reviewable/pr18780/r1
Alexey Wasilyev 9 years ago
parent d7fac82f97
commit 511ce25ac8

@ -569,6 +569,8 @@ def get_split_image_tag(image):
resource, tag = resource.split(':', 1)
if registry:
resource = '/'.join((registry, resource))
if tag == "":
tag = "latest"
else:
tag = "latest"
resource = image

Loading…
Cancel
Save