mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-03-22 02:29:08 +00:00
Strip slashes from volumes (#379)
Fix #372 Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
547abfea53
commit
23fde625f6
2 changed files with 9 additions and 4 deletions
|
|
@ -1225,9 +1225,14 @@ class PodmanContainerDiff:
|
|||
local_vols = []
|
||||
for m in before:
|
||||
if m['type'] != 'volume':
|
||||
volumes.append([m['source'], m['destination']])
|
||||
volumes.append(
|
||||
[
|
||||
clean_volume(m['source']),
|
||||
clean_volume(m['destination'])
|
||||
])
|
||||
elif m['type'] == 'volume':
|
||||
local_vols.append([m['name'], m['destination']])
|
||||
local_vols.append(
|
||||
[m['name'], clean_volume(m['destination'])])
|
||||
before = [":".join(v) for v in volumes]
|
||||
before_local_vols = [":".join(v) for v in local_vols]
|
||||
if self.params['volume'] is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue