check type of task explicitly

pull/2397/head
milan 12 years ago
parent d0332a6c6d
commit 80dbab3cf0

@ -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:

Loading…
Cancel
Save