Reestablishing the use of tags/when for role duplication detection

Not figuring these in can cause problems with "diamond" pattern relationships,
even though this is still not quite optimal.
This commit is contained in:
James Cammarata
2015-07-20 14:36:31 -04:00
parent a0a6d12b05
commit dca36c1d16
4 changed files with 20 additions and 10 deletions

View File

@@ -141,7 +141,7 @@ class ResultProcess(multiprocessing.Process):
if result._task._role:
role_name = result._task._role.get_name()
notify = "%s : %s" % (role_name, notify)
self._send_result(('notify_handler', result._host, notify))
self._send_result(('notify_handler', result, notify))
# now remove the notify field from the results, as its no longer needed
result_item.pop('ansible_notify')