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:
parent
75198ae574
commit
db27c68ef9
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue