From 8ada1501f6966477fea0a673d5fade4f10f04190 Mon Sep 17 00:00:00 2001 From: Sergey Date: Wed, 7 Jul 2021 12:11:13 +0300 Subject: [PATCH] Disable no-hosts idempotency (#273) Because of podman bug we can't discover what's --no-hosts option set to. --- plugins/module_utils/podman/podman_container_lib.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/plugins/module_utils/podman/podman_container_lib.py b/plugins/module_utils/podman/podman_container_lib.py index a0f6af27..9b4004d6 100644 --- a/plugins/module_utils/podman/podman_container_lib.py +++ b/plugins/module_utils/podman/podman_container_lib.py @@ -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']