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

Disable no-hosts idempotency (#273)

Because of podman bug we can't discover what's --no-hosts option
set to.
This commit is contained in:
Sergey 2021-07-07 12:11:13 +03:00 committed by GitHub
parent 06cc4490da
commit 8ada1501f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1063,16 +1063,6 @@ class PodmanContainerDiff:
before, after = sorted(list(set(before))), sorted(list(set(after)))
return self._diff_update_and_compare('network', before, after)
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
return self._diff_update_and_compare('no_hosts', before, after)
def diffparam_oom_score_adj(self):
before = self.info['hostconfig']['oomscoreadj']
after = self.params['oom_score_adj']