1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-04 01:13:00 +00:00

[PR #11825/d1448b76 backport][stable-12] iso_extract: strip leading path separator from file entries (#11832)

iso_extract: strip leading path separator from file entries (#11825)

* iso_extract: strip leading path separator from file entries

Fixes #5283



* iso_extract: add changelog fragment for issue 5283



---------


(cherry picked from commit d1448b76c1)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
patchback[bot] 2026-04-15 22:01:19 +02:00 committed by GitHub
parent 1b4e58bbbf
commit f78a44c6a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 2 deletions

View file

@ -38,3 +38,19 @@
that:
- iso_extract_test0_again is changed
when: in_check_mode
- name: Extract the iso using files with leading slash
iso_extract:
image: '{{ output_test_dir }}/test.iso'
dest: '{{ output_test_dir }}'
files:
- /1.txt
- /2.txt
force: true
register: iso_extract_leading_slash
- name: Test iso_extract with leading slash succeeds (normal mode)
assert:
that:
- iso_extract_leading_slash is not failed
when: not in_check_mode