if a playbook has no vars - still include the global vars

This commit is contained in:
Seth Vidal 2012-05-03 15:52:02 -04:00
parent dc35dd99c0
commit 38ea61054f

View file

@ -135,7 +135,7 @@ class PlayBook(object):
k, v = item.items()[0]
vars[k] = v
else:
vars = play['vars']
vars.update(play['vars'])
vars_prompt = play.get('vars_prompt', {})
if type(vars_prompt) != dict: