Merge pull request #12561 from srvg/anotherdirpy
Inject existing groups at InventoryDir initialization
This commit is contained in:
commit
40bdf09998
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class InventoryDirectory(object):
|
||||||
continue
|
continue
|
||||||
fullpath = os.path.join(self.directory, i)
|
fullpath = os.path.join(self.directory, i)
|
||||||
if os.path.isdir(fullpath):
|
if os.path.isdir(fullpath):
|
||||||
parser = InventoryDirectory(loader=loader, filename=fullpath)
|
parser = InventoryDirectory(loader=loader, groups=groups, filename=fullpath)
|
||||||
else:
|
else:
|
||||||
parser = get_file_parser(fullpath, self.groups, loader)
|
parser = get_file_parser(fullpath, self.groups, loader)
|
||||||
if parser is None:
|
if parser is None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue