mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 12:51:25 -07:00
docker: fix failing in case of empty image tag
This commit is contained in:
parent
ad7704c802
commit
f8adc99196
1 changed files with 2 additions and 0 deletions
|
@ -573,6 +573,8 @@ def get_split_image_tag(image):
|
||||||
resource, tag = resource.split(':', 1)
|
resource, tag = resource.split(':', 1)
|
||||||
if registry:
|
if registry:
|
||||||
resource = '/'.join((registry, resource))
|
resource = '/'.join((registry, resource))
|
||||||
|
if tag == "":
|
||||||
|
tag = "latest"
|
||||||
else:
|
else:
|
||||||
tag = "latest"
|
tag = "latest"
|
||||||
resource = image
|
resource = image
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue