mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Add path_join compatibility shim (#2172)
* Add path_join compatibility shim. * Add myself as maintainer.
This commit is contained in:
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 == ''"
|
||||
Reference in New Issue
Block a user