Commit 6f25885c by Michael DeHaan

Merge pull request #2397 from dparalen/play_task_type_check

check type of task explicitly
parents c260690f 80dbab3c
......@@ -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