community.general/lib/ansible
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
..
cli added check and diff mode control to console 2016-07-25 08:05:56 -04:00
compat Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Fix some typos (#16498) 2016-06-29 14:31:25 -04:00
executor task_result _check_key should handle empty results (#16766) 2016-08-04 17:13:33 -05:00
galaxy Fixes #163 in galaxy-issues 2016-07-21 14:04:17 -04:00
inventory Implicit localhost ondemand (#16900) 2016-08-02 10:39:00 -04:00
module_utils Merge pull request #16879 from alikins/gce_module_utils 2016-08-04 16:16:01 -04:00
modules Update submodule refs 2016-07-26 05:22:59 -07:00
parsing warn when searching for an empty string or null 2016-07-26 08:26:07 -04:00
playbook FEATURE: adding variable serial batches 2016-08-04 15:04:10 -05:00
plugins Fix for issue @synchronize doesn't substitute variables properly #16347 (#16349) 2016-08-04 11:27:44 -07:00
template allow spaces before the filter string (#16312) 2016-06-15 14:17:17 -04:00
utils FEATURE: adding variable serial batches 2016-08-04 15:04:10 -05:00
vars Implicit localhost ondemand (#16900) 2016-08-02 10:39:00 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py optimize booleanifycation 2016-08-04 11:32:26 -04:00
release.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00