From f8adc99196e40b2ce4c4a5db48673123e868c07b Mon Sep 17 00:00:00 2001 From: Alexey Wasilyev Date: Thu, 21 Jan 2016 11:53:39 +0300 Subject: [PATCH] docker: fix failing in case of empty image tag --- lib/ansible/modules/cloud/docker/docker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index aa25cd4d03..5a0ec11cf4 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -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