Commit dab50574 by Michael DeHaan

Merge pull request #356 from jkleint/singleton-notify

Support single handlers for notify.
parents 5ebe915d d9427db1
......@@ -364,6 +364,8 @@ class PlayBook(object):
# we would only trigger restarting Apache on half of the nodes
subtasks = task.get('notify', [])
if isinstance(subtasks, basestring):
subtasks = [subtasks]
if len(subtasks) > 0:
for host, results in results.get('contacted',{}).iteritems():
if results.get('changed', False):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment