mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
correct, cleanup & simplify dwim stack (#25956)
* correct, cleanup & simplify dwim stack latlh chIS logh HeS qar wej chel laD better errors update find_file to new exception * addressed latest comments * test should not use realpath as it follows symlink this fails when on OS X as /var is now a symlink to /private/var but first_found was not supposed to follow symlinks
This commit is contained in:
parent
272f5fd03a
commit
8f758204cf
7 changed files with 81 additions and 52 deletions
|
@ -216,10 +216,10 @@
|
|||
- "{{ output_dir + '/bar1' }}"
|
||||
|
||||
- name: set expected
|
||||
set_fact: first_expected="{{ output_dir | expanduser | realpath + '/foo1' }}"
|
||||
set_fact: first_expected="{{ output_dir | expanduser + '/foo1' }}"
|
||||
|
||||
- name: set unexpected
|
||||
set_fact: first_unexpected="{{ output_dir | expanduser | realpath + '/bar1' }}"
|
||||
set_fact: first_unexpected="{{ output_dir | expanduser + '/bar1' }}"
|
||||
|
||||
- name: verify with_first_found results
|
||||
assert:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue