From 733290a7318ad62503bfbb4b663371ef85a72378 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 16 Sep 2014 11:39:15 -0700 Subject: [PATCH] Fix the case where a docker image is not part of a namespace. Fixes #9016 --- library/cloud/docker | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/cloud/docker b/library/cloud/docker index 807572f8663..e8f8cc4fa94 100644 --- a/library/cloud/docker +++ b/library/cloud/docker @@ -507,7 +507,10 @@ class DockerManager: def get_split_image_tag(self, image): # If image contains a host or org name, omit that from our check - registry, resource = image.rsplit('/', 1) + if image.find('/') > 0: + registry, resource = image.rsplit('/', 1) + else: + registry, resource = '', image # now we can determine if image has a tag if resource.find(':') > 0: