Build variable dictionary on included plays without using dict()

Using dict(k=v) means the key was always named 'k', as the variable
is not interpreted there.

Fixes #5801
pull/5811/merge
James Cammarata 11 years ago
parent 48c477ffc8
commit 5cc354696d

@ -209,7 +209,7 @@ class PlayBook(object):
p['vars'].update(incvars)
elif isinstance(p['vars'], list):
# nobody should really do this, but handle vars: a=1 b=2
p['vars'].extend([dict(k=v) for k,v in incvars.iteritems()])
p['vars'].extend([{k:v} for k,v in incvars.iteritems()])
accumulated_plays.extend(plays)
play_basedirs.extend(basedirs)

Loading…
Cancel
Save