mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Add path_join compatibility shim (#2172)
* Add path_join compatibility shim. * Add myself as maintainer.
This commit is contained in:
parent
595d590862
commit
4b6722d938
6 changed files with 49 additions and 0 deletions
2
tests/integration/targets/filter_path_join_shim/aliases
Normal file
2
tests/integration/targets/filter_path_join_shim/aliases
Normal file
|
@ -0,0 +1,2 @@
|
|||
shippable/posix/group1
|
||||
skip/python2.6 # filters are controller only, and we no longer support Python 2.6 on the controller
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: "Test path_join filter"
|
||||
assert:
|
||||
that:
|
||||
- "['a', 'b'] | community.general.path_join == 'a/b'"
|
||||
- "['a', '/b'] | community.general.path_join == '/b'"
|
||||
- "[''] | community.general.path_join == ''"
|
Loading…
Add table
Add a link
Reference in a new issue