mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
docker_service build command respects the "pull: no" parameter
Fixes #30296.
This commit is contained in:
committed by
Chris Houseknecht
parent
fb4d065654
commit
4c0889e8fc
@@ -894,7 +894,7 @@ class ContainerManager(DockerBaseClass):
|
|||||||
|
|
||||||
# build the image
|
# build the image
|
||||||
try:
|
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:
|
except Exception as exc:
|
||||||
self.client.fail("Error: build failed with %s" % str(exc))
|
self.client.fail("Error: build failed with %s" % str(exc))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user