1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #2397 from dparalen/play_task_type_check

check type of task explicitly
This commit is contained in:
Michael DeHaan 2013-03-14 08:24:41 -07:00
commit 6f25885c1a

View file

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