From 9fb6cabe218b0bca7635faf718140a7dd9d05745 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 15 Sep 2014 09:00:11 -0700 Subject: [PATCH] Fix splitting the tag from the image name Fixes #8983 --- library/cloud/docker | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/cloud/docker b/library/cloud/docker index b831485e52..807572f866 100644 --- a/library/cloud/docker +++ b/library/cloud/docker @@ -507,12 +507,12 @@ class DockerManager: def get_split_image_tag(self, image): # If image contains a host or org name, omit that from our check - resource = image.rsplit('/', 1)[-1] + registry, resource = image.rsplit('/', 1) # now we can determine if image has a tag if resource.find(':') > 0: - # Use image here so that host and org name are included - return image.split(':', 1) + resource, tag = resource.split(':', 1) + return '/'.join((registry, resource)), tag else: tag = "latest" return image, tag