mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Allow handler files to be empty lists.
This commit is contained in:
parent
12403abc2c
commit
0030a2bd09
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue