Commit 5daa540b by Brian Coca

Merge pull request #11576 from srvg/combine_empty_vars_file

Do not combine group_vars with an empty file
parents 24b830bb 9c8f0da3
...@@ -308,6 +308,7 @@ class VariableManager: ...@@ -308,6 +308,7 @@ class VariableManager:
paths = [os.path.join(path, name) for name in names if not name.startswith('.')] paths = [os.path.join(path, name) for name in names if not name.startswith('.')]
for p in paths: for p in paths:
_found, results = self._load_inventory_file(path=p, loader=loader) _found, results = self._load_inventory_file(path=p, loader=loader)
if results is not None:
data = self._combine_vars(data, results) data = self._combine_vars(data, results)
else: else:
......
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