1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix changed event for docker_image in force mode

This commit is contained in:
Alvaro Aleman 2016-12-12 16:58:43 +01:00 committed by Brian Coca
parent b905a349ac
commit f8e79eb481

View file

@ -339,6 +339,8 @@ class ImageManager(DockerBaseClass):
self.results['changed'] = True
if not self.check_mode:
self.results['image'] = self.client.pull_image(self.name, tag=self.tag)
if image and image == self.results['image']:
self.results['changed'] = False
if self.archive_path:
self.archive_image(self.name, self.tag)