mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
docker: fix failing in case of empty image tag
This commit is contained in:
committed by
Matt Clay
parent
ad7704c802
commit
f8adc99196
@@ -573,6 +573,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
|
||||
|
||||
Reference in New Issue
Block a user