Support single handlers for notify.

pull/4420/head
John Kleint 2012-05-10 15:37:30 -04:00
parent e5d3576e0b
commit d9427db14b
1 changed files with 2 additions and 0 deletions

View File

@ -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):