From 5262d768e0230622dc492b8ccaca1f0e9547d842 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 18 Mar 2015 18:27:01 -0700 Subject: [PATCH] Add another valid status from downloading images --- lib/ansible/modules/cloud/docker/docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index 67114129d9b..203b80f660b 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -1170,7 +1170,8 @@ class DockerManager(object): if status.startswith('Status: Image is up to date for'): # Image is already up to date. Don't increment the counter. pass - elif status.startswith('Status: Downloaded newer image for'): + elif (status.startswith('Status: Downloaded newer image for') or + status.startswith('Download complete')): # Image was updated. Increment the pull counter. self.increment_counter('pulled') else: