1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-03-22 02:29:08 +00:00

Improve idempotency for volumes with slashes (#78)

In case of trailing slash or double slashes, the Podman strips it
automatically. Prepare input data accordingly, so we can compare
with Podman inspected one.
This commit is contained in:
Sergey 2020-07-09 18:37:08 +03:00 committed by GitHub
parent 6b2bcef9b2
commit 3ba6416ffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View file

@ -60,7 +60,7 @@
name: idempotency
state: present
volumes:
- /opt:/somedir
- /opt/://somedir
command: 1h
register: test5
@ -142,8 +142,8 @@
state: present
command: 1h
volumes:
- "/opt:/anotherdir"
- "local_volume1:/data"
- "/opt//:/anotherdir"
- "local_volume1:/data/"
register: test11
- name: check test11