ansible/test/units/plugins
Toshio Kuratomi 155f36bbd8
Rekey on member (#33836)
* Change cast_list_to_dict to more generic rekey_on_member

cast_list_to_dict was taking an arbitrary data format in and returning
an arbitrary data format out.  Rework this to be a more generic function
which creates a dict of dicts based on a member of the dict.

Remove cast_dict_to_list since rekey_on_member handles the use cases we
know about and cast_dict_to_list suffers from the same problems as
cast_list_to_dict.  If this is still needed we could think about filters
we could add to do this in a short jinja2 pipeline.

* Fix bare excepts (bare excepts even catch sys.exit())
2017-12-12 19:02:15 -08:00
..
action
cache
callback Use pop in cb clean results (#33779) 2017-12-11 17:41:12 -05:00
connection Fix unit test failure for netconf connection plugin (#33547) 2017-12-05 12:04:48 +05:30
filter Rekey on member (#33836) 2017-12-12 19:02:15 -08:00
inventory
lookup
shell
strategy
vars
__init__.py
test_plugins.py