From 4c0889e8fcee6c8be9fef33887480747c227725d Mon Sep 17 00:00:00 2001 From: Andrew Lihonosov Date: Wed, 13 Sep 2017 18:38:14 +0000 Subject: [PATCH] docker_service build command respects the "pull: no" parameter Fixes #30296. --- lib/ansible/modules/cloud/docker/docker_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker_service.py b/lib/ansible/modules/cloud/docker/docker_service.py index 24263d1a2e..372e0770fc 100755 --- a/lib/ansible/modules/cloud/docker/docker_service.py +++ b/lib/ansible/modules/cloud/docker/docker_service.py @@ -894,7 +894,7 @@ class ContainerManager(DockerBaseClass): # build the image try: - new_image_id = service.build(pull=True, no_cache=self.nocache) + new_image_id = service.build(pull=self.pull, no_cache=self.nocache) except Exception as exc: self.client.fail("Error: build failed with %s" % str(exc))