Commit fa1ab231 by James Cammarata

Fixing bug in which playbook vars were not merged properly

This occurred when a hash would be passed in via extra args and the
hash variable behavior was set to 'merge', which resulted in the
variable from extra args replacing the playbook variable.
parent d158ec38
...@@ -649,7 +649,7 @@ class Play(object): ...@@ -649,7 +649,7 @@ class Play(object):
raise errors.AnsibleError("'vars_prompt' section is malformed, see docs") raise errors.AnsibleError("'vars_prompt' section is malformed, see docs")
if type(self.playbook.extra_vars) == dict: if type(self.playbook.extra_vars) == dict:
vars.update(self.playbook.extra_vars) vars = utils.combine_vars(vars, self.playbook.extra_vars)
return vars return vars
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment