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:
parent
6b2bcef9b2
commit
3ba6416ffc
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue