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:
parent
cd652fe2ee
commit
62638bac26
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue