From e51ea29d8f69f79c239a2f80f79edbb2d9fcc496 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 30 Apr 2015 17:44:05 -0700 Subject: [PATCH] Return empty list if an image has no repo_tags --- cloud/docker/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/docker/docker.py b/cloud/docker/docker.py index 37d60a06b87..ca71ddf7386 100644 --- a/cloud/docker/docker.py +++ b/cloud/docker/docker.py @@ -820,7 +820,7 @@ class DockerManager(object): for image in self.client.images(name=image): if resource in image.get('RepoTags', []): return image['RepoTags'] - return None + return [] def get_inspect_containers(self, containers): inspect = []