Skip to content

Commit

Permalink
Disable no-hosts idempotency (#273)
Browse files Browse the repository at this point in the history
Because of podman bug we can't discover what's --no-hosts option
set to.
  • Loading branch information
sshnaidm authored Jul 7, 2021
1 parent 06cc449 commit 8ada150
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions plugins/module_utils/podman/podman_container_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,16 +1063,6 @@ def diffparam_network(self):
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']
Expand Down

0 comments on commit 8ada150

Please sign in to comment.