summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Bray <mattjbray@gmail.com>2014-05-15 15:04:30 +0100
committerJames Cammarata <jimi@sngx.net>2014-05-21 14:59:32 -0500
commitcb0842ab49a39fc1c3a1c09b1fdd6445f1f89ef5 (patch)
treef8a55d8df8b53300bf2c6b0c44d195c403619783
parent2432b45eb1e081bbc58ba1c04e6b75f58e92b31d (diff)
downloadansible-cb0842ab49a39fc1c3a1c09b1fdd6445f1f89ef5.tar.gz
docker: fix targetting images by name
-rw-r--r--library/cloud/docker2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cloud/docker b/library/cloud/docker
index 84ac1adce2..4ea1cf65ba 100644
--- a/library/cloud/docker
+++ b/library/cloud/docker
@@ -516,7 +516,7 @@ class DockerManager:
# '{} {}'.format(entrypoint, command)
command_matches = (not command or running_command.endswith(command))
- if name_matches or (image_matches and tag_matches and command_matches):
+ if name_matches or (name is None and image_matches and tag_matches and command_matches):
details = self.client.inspect_container(i['Id'])
details = _docker_id_quirk(details)
deployed.append(details)