Allow handler files to be empty lists.

This commit is contained in:
Michael DeHaan 2013-01-27 10:40:29 -05:00
parent 12403abc2c
commit 0030a2bd09

View file

@ -101,6 +101,10 @@ class Play(object):
''' handle task and handler include statements '''
results = []
if tasks is None:
# support empty handler files, and the like.
tasks = []
for x in tasks:
task_vars = self.vars.copy()
task_vars.update(vars)