summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2015-09-30 08:18:34 -0400
committerJames Cammarata <jimi@sngx.net>2015-09-30 08:18:34 -0400
commit40bdf09998d9753a7d936a807ecf1dad37e38c27 (patch)
tree406995fbcde64f4a26f3b19e48efc61f227b1ec9
parent6fcd292c5e1126abf13322928092a997f03be383 (diff)
parent7461ba99989d8ab2c45199158deb21837112537c (diff)
downloadansible-40bdf09998d9753a7d936a807ecf1dad37e38c27.tar.gz
Merge pull request #12561 from srvg/anotherdirpy
Inject existing groups at InventoryDir initialization
-rw-r--r--lib/ansible/inventory/dir.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/inventory/dir.py b/lib/ansible/inventory/dir.py
index 9394696d7f..7ae9611ddf 100644
--- a/lib/ansible/inventory/dir.py
+++ b/lib/ansible/inventory/dir.py
@@ -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: