Commit 80dbab3c by milan

check type of task explicitly

parent d0332a6c
......@@ -104,6 +104,8 @@ class Play(object):
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.update(vars)
if 'include' in x:
......
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