1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Fix pod tests in CI (#445)

Remove 'net' from pod idempotency if it's not in inspection.
Probably a bug on Ubuntu.

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sergey 2022-07-04 15:46:35 +03:00 committed by GitHub
parent 75198ae574
commit db27c68ef9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -488,6 +488,9 @@ class PodmanPodDiff:
after = self.params['share'].split(",")
else:
after = ['uts', 'ipc', 'net']
# TODO: find out why on Ubuntu the 'net' is not present
if 'net' not in before:
after.remove('net')
before, after = sorted(list(set(before))), sorted(list(set(after)))
return self._diff_update_and_compare('share', before, after)