mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
check type of task explicitly
This commit is contained in:
@@ -104,6 +104,8 @@ class Play(object):
|
|||||||
tasks = []
|
tasks = []
|
||||||
|
|
||||||
for x in tasks:
|
for x in tasks:
|
||||||
|
if not isinstance(x, dict):
|
||||||
|
raise errors.AnsibleError("expecting dict; got: %s" % x)
|
||||||
task_vars = self.vars.copy()
|
task_vars = self.vars.copy()
|
||||||
task_vars.update(vars)
|
task_vars.update(vars)
|
||||||
if 'include' in x:
|
if 'include' in x:
|
||||||
|
|||||||
Reference in New Issue
Block a user