ansible/test/units
James Cammarata 0871d955fe Reworking iterator logic regarding failed states during always
Previous changes addressed a corner case, which unfortunately introduced
another bug. This patch adds a new flag to the host state (did_rescue) which
is set to true when the rescue portion of a block completes. This flag is
then checked in _check_failed_state() when the fail_state != FAILED_NONE.

This lead to the discovery of another bug - current strategies are not advancing
hosts to ITERATING_COMPLETE after doing a peek at the next task, leaving the
host state in the run_state of the final task. To address this, before gathering
the list of failed hosts in StrategyBase.run(), a final pass through the iterator
for all hosts is done to ensure each host is in its final state. This way, no
strategy derived from StrategyBase has to worry about it and it's handled.

Fixes #17983

(cherry picked from commit ca5b361ad8)
2016-11-18 11:09:36 -06:00
..
cli Have unittests import mock from ansible.compat so they work on py3 without mock installed from pypi 2016-09-15 15:21:17 -07:00
contrib Add a new vmware inventory script backed by pyvmomi (#15967) 2016-05-30 20:41:48 -04:00
errors Relocate use of ERROR to display class, to avoid doubling up 2016-01-19 12:10:39 -05:00
executor Change v2_playbook_on_start logic to positively detect legacy plugins 2016-11-01 07:53:04 -07:00
inventory Changing up how host (in)equality is checked 2015-12-04 12:57:46 -05:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Fix bug (#18355) where encrypted inventories fail 18355 (#18373) 2016-11-07 10:15:09 -05:00
module_utils Set ansible_os_family correctly under KDE neon 2016-11-01 07:53:04 -07:00
modules Have unittests import mock from ansible.compat so they work on py3 without mock installed from pypi 2016-09-15 15:21:17 -07:00
parsing Fix bug (#18355) where encrypted inventories fail 18355 (#18373) 2016-11-07 10:15:09 -05:00
playbook updated pbrun test to match expected output 2016-10-17 14:43:02 -04:00
plugins Reworking iterator logic regarding failed states during always 2016-11-18 11:09:36 -06:00
template Merge branch 'threaded_receiver' into devel 2016-09-20 09:18:26 -05:00
utils FEATURE: adding variable serial batches 2016-08-04 15:04:10 -05:00
vars Make ini parsing slightly more robust 2016-10-04 11:25:45 -07:00
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00