community.general/lib/ansible/plugins
Jim Gu 5839f07e0f yaml callback fails on python3
When the URI module returns complex JSON objects, the YAML callback
fails while trying to represent these objects.  The problem arises
because the filter method returns an iterator in Python 3, rather than a
str object.  Therefore, the str method expandtabs() is not available,
and the callback fails with the following error:

[WARNING]: Failure using method (v2_runner_on_failed) in callback plugin (<ansible.plugins.callback.yaml.CallbackModule object at 0x7f7c7ed8aa20>): 'filter' object has no attribute 'expandtabs'

Issue can be replicated by running this playbook:

- hosts: localhost
  gather_facts: false
  tasks:
    - uri:
        url: https://jsonplaceholder.typicode.com/posts

ansible-playbook tmp.yml -v
2018-04-02 11:41:00 -04:00
..
action module_common: handle None value for templar (#36651) 2018-03-29 13:54:48 -04:00
cache add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
callback yaml callback fails on python3 2018-04-02 11:41:00 -04:00
cliconf show version brief does not work on iosxr virtual (#37609) 2018-03-29 12:33:41 +05:30
connection Put back $PATH checking in ansible-connection call (#37933) 2018-03-26 12:49:30 -04:00
filter Revert accidental addition of Mapping in #37741 (#37939) 2018-03-26 13:57:56 -05:00
inventory doc: inventory: nmap: fix version added (#38157) 2018-03-31 11:45:12 +02:00
lookup flattened: doc: Typo in lookup example (#38006) 2018-03-28 08:25:40 +02:00
netconf Raise error when trying to use older iosxr modules with netconf (#37423) 2018-03-15 12:49:35 -04:00
shell win: handle non string as an environment value (#37215) 2018-03-09 08:02:54 +10:00
strategy Re-use logic from StrategyBase._load_included_file in StrategyModule.run for free and linear (#36470) 2018-02-21 09:53:15 -06:00
terminal Lenovo license update (#36840) 2018-03-06 18:02:46 +00:00
test Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
vars Scan group_vars/host_vars in sorted order 2017-11-20 21:57:42 -05:00
__init__.py fixed up get_options in AnsiblePlugin to use the correct plugin name 2017-11-22 15:35:31 -05:00
loader.py We need to save the basename into an attribute for calling code 2018-03-26 16:15:05 -07:00