mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-04-17 14:51:25 +00:00
podman_container_lib: Added checks for volume opts (#941)
* podman_container_lib: Added checks for volume opts Changed the diffparam_volume function to include the volume mount opts. Signed-off-by: Lucas Benedito <lbenedit@redhat.com> * Add test for volume mount options Signed-off-by: Lucas Benedito <lbenedit@redhat.com> --------- Signed-off-by: Lucas Benedito <lbenedit@redhat.com>
This commit is contained in:
parent
4c682e170c
commit
6ff93e7559
2 changed files with 35 additions and 2 deletions
|
|
@ -1560,12 +1560,12 @@ class PodmanContainerDiff:
|
|||
after = self.params["volume"]
|
||||
if after is not None:
|
||||
after = [
|
||||
":".join([clean_volume(i) for i in v.split(":")[:2]])
|
||||
":".join([clean_volume(i) for i in v.split(":")[:3]])
|
||||
for v in self.params["volume"]
|
||||
]
|
||||
if before is not None:
|
||||
before = [
|
||||
":".join([clean_volume(i) for i in v.split(":")[:2]]) for v in before
|
||||
":".join([clean_volume(i) for i in v.split(":")[:3]]) for v in before
|
||||
]
|
||||
if before is None and after is None:
|
||||
return self._diff_update_and_compare("volume", before, after)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue