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:
parent
06cc4490da
commit
8ada1501f6
1 changed files with 0 additions and 10 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue