community.general/lib/ansible/executor
Will Thames eb2a3a91a8 task_result _check_key should handle empty results (#16766)
When a task result has an empty results list, the
list should be ignored when determining the results
of `_check_key`. Here the empty list is treated the
same as a non-existent list.

This fixes a bug that manifests itself with squashed
items - namely the task result contains the correct
value for the key, but an empty results list. The
empty results list was treated as zero failures
when deciding which handler to call - so the task
show as a success in the output, but is deemed to
have failed when deciding whether to continue.

This also demonstrates a mismatch between task
result processing and play iteration.

A test is also added for this case, but it would not
have caught the bug - because the bug is really in
the display, and not the success/failure of the
task (visually the test is more accurate).

Fixes ansible/ansible-modules-core#4214
2016-08-04 17:13:33 -05:00
..
process Use loop_control.loop_var directly 2016-07-01 07:03:42 +05:30
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00
module_common.py (re)allow ansible_python_interpreter to contain more than 1 arg (#16247) 2016-07-26 07:46:16 -07:00
play_iterator.py make timeout decorator for facts have a configurable duration (#16551) 2016-07-08 17:46:41 -04:00
playbook_executor.py FEATURE: adding variable serial batches 2016-08-04 15:04:10 -05:00
stats.py Making the switch to v2 2015-05-03 21:47:26 -05:00
task_executor.py fxed typo 2016-07-14 09:05:01 -04:00
task_queue_manager.py FEATURE: adding variable serial batches 2016-08-04 15:04:10 -05:00
task_result.py task_result _check_key should handle empty results (#16766) 2016-08-04 17:13:33 -05:00