Skip to content

Commit

Permalink
Add unittests for volume idempotency
Browse files Browse the repository at this point in the history
  • Loading branch information
sshnaidm committed Feb 26, 2023
1 parent d3e1d44 commit e225af4
Show file tree
Hide file tree
Showing 3 changed files with 414 additions and 42 deletions.
2 changes: 1 addition & 1 deletion plugins/module_utils/podman/podman_container_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ def prep_volume_for_comp(all_ms):
f = prep_tmpfs_for_comp(cr_com[i + 1])
if f:
before.append(f)
elif v == '--volume':
elif v in ('--volume', '-v'):
f = prep_volume_for_comp(cr_com[i + 1])
if f:
before.append(f)
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ ansible-core
pytest
pytest-forked
pytest-xdist
pytest-mock
Loading

0 comments on commit e225af4

Please sign in to comment.