ansible/test/units
James Cammarata 43d1ea0cfc Track notified handlers by object rather than simply their name
Due to the fact that roles may be instantiated with different sets of
params (multiple inclusions of the same role or via role dependencies),
simply tracking notified handlers by name does not work. This patch
changes the way we track handler notifications by using the handler
object itself instead of just the name, allowing for multiple internal
instances. Normally this would be bad, but we also modify the way we
search for handlers by first looking at the notifying tasks dependency
chain (ensuring that roles find their own handlers first) and then at
the main list of handlers, using the first match it finds.

This patch also modifies the way we setup the internal list of handlers,
which should allow us to correctly identify if a notified handler exists
more easily.

Fixes #15084
2016-06-14 22:34:51 -05:00
..
errors Relocate use of ERROR to display class, to avoid doubling up 2016-01-19 12:10:39 -05:00
executor If we can't squash for any reason, then simply do not optimize the items loop. 2016-05-12 11:11:05 -07:00
inventory Changing up how host (in)equality is checked 2015-12-04 12:57:46 -05:00
inventory_test_data/group_vars
mock add _load_params debug overrides for module args/file passed on cmdline 2016-04-18 11:06:46 -07:00
module_utils Don't use 'from ansible.module_utils import foo' style here as it breaks (#15756) 2016-05-13 23:59:39 -07:00
modules Fix docker unit test. Not deprecated in 2.1. 2016-06-11 09:14:54 -07:00
parsing New unit tests for #13630 fix 2016-03-28 15:54:07 -04:00
playbook add centrify dzdo escalation (#15219) 2016-04-25 11:24:26 -04:00
plugins Track notified handlers by object rather than simply their name 2016-06-14 22:34:51 -05:00
template Cleaning up FIXMEs 2015-10-22 16:03:50 -04:00
utils Python 3: shlex.split() wants unicode 2015-09-24 12:36:05 +03:00
vars Adds 'ansible_check_mode' boolean magic variable 2016-04-08 00:26:02 +02:00
__init__.py