Add dict filter (#2171)

* Add dict and list_to_dict filters.

* Remove list_to_dict filter.

* Add myself as maintainer.
This commit is contained in:
Felix Fontein 2021-04-08 07:50:28 +02:00 committed by GitHub
parent 4b6722d938
commit b6ae47c455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,2 @@
shippable/posix/group3
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 dict filter"
assert:
that:
- "[['a', 'b']] | community.general.dict == dict([['a', 'b']])"
- "[['a', 'b'], [1, 2]] | community.general.dict == dict([['a', 'b'], [1, 2]])"
- "[] | community.general.dict == dict([])"