Commit 74afd243 by Brian Coca

added test for notify in case it is defined as an empty keyword

parent b70caac6
......@@ -546,7 +546,7 @@ class PlayBook(object):
_register_play_vars(host, result)
# flag which notify handlers need to be run
if len(task.notify) > 0:
if task.notify and len(task.notify) > 0:
for host, results in results.get('contacted',{}).iteritems():
if results.get('changed', False):
for handler_name in task.notify:
......
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