community.general/lib/ansible
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
..
cli Fix 'New Vault password' on vault 'edit' (#35923) 2018-03-27 14:12:21 -04:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config adds fix for terminal plugins 2018-03-05 08:54:40 -05:00
errors Make AnsibleActionDone a private exception 2018-01-22 23:36:34 -08:00
executor module_common: handle None value for templar (#36651) 2018-03-29 13:54:48 -04:00
galaxy Ansible Galaxy: skel for network role #37241 (#37251) 2018-03-09 13:31:27 -05:00
inventory Except in specific cases, we want to use text strings on the controller 2018-03-26 16:54:39 -07:00
module_utils add instanceUuid (also called PersistentId) in vmware utils (#37127) 2018-04-02 01:49:39 -04:00
modules Improve details and events results for ecs_service_facts (#37983) 2018-04-02 11:26:23 -04:00
parsing Fix 'New Vault password' on vault 'edit' (#35923) 2018-03-27 14:12:21 -04:00
playbook Use correct action in warning about missing name 2018-03-29 18:10:00 -04:00
plugins yaml callback fails on python3 2018-04-02 11:41:00 -04:00
template Don't overwrite builtin jinja2 filters with tests (#37881) 2018-03-26 12:06:00 -05:00
utils Document the relationship between octal numbers and the leading zero 2018-03-26 16:25:06 -07:00
vars Fix ansible_lo being used inside of ansible_facts 2018-03-13 12:05:14 -04:00
__init__.py
constants.py Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
release.py Fix version in lib/ansible/release.py 2018-02-09 04:47:31 -08:00