Commit 40bdf099 by James Cammarata

Merge pull request #12561 from srvg/anotherdirpy

Inject existing groups at InventoryDir initialization
parents 6fcd292c 7461ba99
......@@ -107,7 +107,7 @@ class InventoryDirectory(object):
continue
fullpath = os.path.join(self.directory, i)
if os.path.isdir(fullpath):
parser = InventoryDirectory(loader=loader, filename=fullpath)
parser = InventoryDirectory(loader=loader, groups=groups, filename=fullpath)
else:
parser = get_file_parser(fullpath, self.groups, loader)
if parser is None:
......
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