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))