diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index 0c7e54614cf..c7906bc4fdb 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -824,7 +824,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 = []