Fixing variable name bug introduced in ac8950f

Fixes #8617
release1.7.1
James Cammarata 10 years ago
parent 293b11e45d
commit d9fb94378c

@ -232,10 +232,10 @@ class PlayBook(object):
return vars.copy()
play_vars = None
if isinstance(play_vars, dict):
if isinstance(play['vars'], dict):
play_vars = play['vars'].copy()
play_vars.update(vars)
elif isinstance(play_vars, list):
elif isinstance(play['vars'], list):
# nobody should really do this, but handle vars: a=1 b=2
play_vars = play['vars'][:]
play_vars.extend([{k:v} for k,v in vars.iteritems()])

Loading…
Cancel
Save