Use get_handler_blocks() to get list of role handlers

This commit is contained in:
James Cammarata 2016-07-06 12:29:02 -05:00
parent 3f4027f7b4
commit 690bc192d5

View file

@ -124,7 +124,7 @@ class TaskQueueManager:
handlers = play.handlers
for role in play.roles:
handlers.extend(role._handler_blocks)
handlers.extend(role.get_handler_blocks())
# Zero the dictionary first by removing any entries there.
# Proxied dicts don't support iteritems, so we have to use keys()