1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Fix no_hosts idempotency for newer version

This commit is contained in:
Sagi Shnaidman 2020-12-20 18:20:16 +02:00 committed by Sergey
parent cd652fe2ee
commit 62638bac26

View file

@ -940,6 +940,9 @@ class PodmanContainerDiff:
def diffparam_no_hosts(self):
before = not bool(self.info['hostspath'])
# For newer verions of Podman
if 'resolvconfpath' in self.info:
before = not bool(self.info['resolvconfpath'])
after = self.params['no_hosts']
if self.params['network'] == ['none']:
after = True