Commit b9fd948c by Michael DeHaan

Merge pull request #421 from bradobro/fix_ignore_no_vars

Avoid traceback when vars file has no vars items. Could warn or fail instead.
parents c03fec48 7ea4a0e8
......@@ -186,5 +186,7 @@ class Play(object):
fpath = utils.path_dwim(self.playbook.basedir, utils.template(filename, self.vars))
new_vars = utils.parse_yaml_from_file(fpath)
if new_vars:
self.playbook.SETUP_CACHE[host].update(new_vars)
#else: could warn if vars file contains no 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