1
0
Fork 0
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:
Sergey 2022-02-17 18:29:51 +02:00 committed by GitHub
parent 547abfea53
commit 23fde625f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View file

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