Cleaning up some of the notify/facts logic added earlier to fix problems

This commit is contained in:
James Cammarata 2015-07-17 14:44:05 -04:00
parent 1aa4155266
commit 271a7f3281
4 changed files with 14 additions and 14 deletions

View file

@ -333,7 +333,7 @@ class TaskExecutor:
# save the notification target in the result, if it was specified, as
# this task may be running in a loop in which case the notification
# may be item-specific, ie. "notify: service {{item}}"
if self._task.notify:
if self._task.notify is not None:
result['ansible_notify'] = self._task.notify
# and return