mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-05 21:02:48 +00:00
Merge pull request #12561 from srvg/anotherdirpy
Inject existing groups at InventoryDir initialization
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user