1
0
Fork 0
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:
Sergey 2023-02-12 01:42:20 +02:00 committed by GitHub
parent 7d1d016fe9
commit c4bc7ccada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -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)