Add path_join compatibility shim (#2172) (#2206)

* Add path_join compatibility shim.

* Add myself as maintainer.

(cherry picked from commit 4b6722d938)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2021-04-08 08:31:35 +02:00 committed by GitHub
commit 6338048c73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 49 additions and 0 deletions

View 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

View file

@ -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 == ''"