community.general/lib/ansible/plugins/callback
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
..
__init__.py debug should have item (#36534) 2018-02-23 15:12:14 -05:00
actionable.py fix spelling. Seriously, that's it. 2018-02-12 13:17:55 -05:00
context_demo.py Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
debug.py corrected dump signature 2018-02-12 16:52:04 -05:00
default.py remove extra fields from debug output 2018-02-20 08:46:05 -05:00
dense.py Windows: Clean up documentation (#36684) 2018-02-25 03:09:54 +01:00
foreman.py Add the option to use config file instead of enviroment variables (#32497) 2018-02-05 22:19:56 -05:00
full_skip.py fix spelling. Seriously, that's it. 2018-02-12 13:17:55 -05:00
hipchat.py Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
jabber.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
json.py Restore skipped/failed in JSON callback, add custom facts (#37204) 2018-03-20 10:32:33 -04:00
junit.py Count ignored failed tasks and successful tasks with expected failure… (#33282) 2018-01-03 16:03:15 -08:00
log_plays.py fixes typo ansbile to ansible 2018-01-02 17:17:53 -08:00
logentries.py Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
logstash.py Updated documentation description (#34121) 2017-12-21 13:44:54 +10:00
mail.py Windows: Clean up documentation (#36684) 2018-02-25 03:09:54 +01:00
minimal.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
null.py Added callback that removes callback noise 2017-11-09 17:12:13 -05:00
oneline.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
osx_say.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
profile_roles.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
profile_tasks.py Use module formatting (#33413) 2017-12-07 14:26:52 +00:00
selective.py hide uneeded fields for callbacks (#36259) 2018-02-20 08:41:18 -05:00
skippy.py fixed issue with default callback inheritance (#30427) 2017-09-15 11:14:47 -07:00
slack.py get_option instead of internal dict (#33191) 2017-11-28 12:00:22 -05:00
stderr.py fixed issue with default callback inheritance (#30427) 2017-09-15 11:14:47 -07:00
syslog_json.py syslog_json: fix typos in documentation 2017-11-13 17:11:15 -05:00
timer.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
tree.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
unixy.py fix unixy when debug's msg is not text (#36882) 2018-03-01 09:23:39 +10:00
yaml.py yaml callback fails on python3 2018-04-02 11:41:00 -04:00