mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Fix idempotency for pods with uidmap and gidmap (#546)
Fix #543 Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
7d1d016fe9
commit
c4bc7ccada
2 changed files with 30 additions and 0 deletions
|
|
@ -498,6 +498,8 @@ class PodmanPodDiff:
|
|||
# TODO: find out why on Ubuntu the 'net' is not present
|
||||
if 'net' not in before:
|
||||
after.remove('net')
|
||||
if self.params["uidmap"] or self.params["gidmap"]:
|
||||
after.append('user')
|
||||
|
||||
before, after = sorted(list(set(before))), sorted(list(set(after)))
|
||||
return self._diff_update_and_compare('share', before, after)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue