Merge pull request #2570 from skvidal/devel

simple fix for issue 2564
This commit is contained in:
Michael DeHaan 2013-04-05 11:07:22 -07:00
commit 8c859f6f61

View file

@ -69,7 +69,8 @@ class InventoryParser(object):
if line.find(":vars") != -1 or line.find(":children") != -1:
active_group_name = active_group_name.rsplit(":", 1)[0]
if active_group_name not in self.groups:
self.groups[active_group_name] = Group(name=active_group_name)
new_group = self.groups[active_group_name] = Group(name=active_group_name)
all.add_child_group(new_group)
active_group_name = None
elif active_group_name not in self.groups:
new_group = self.groups[active_group_name] = Group(name=active_group_name)