summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Plugins/Metadata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index d416b8c89..f28db386b 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -106,6 +106,8 @@ class Metadata(Bcfg2.Server.Plugin.Plugin):
grouptmp = {}
self.categories = {}
for group in xdata.findall('.//Group'):
+ if group.getparent().tag == 'Group':
+ continue
grouptmp[group.get('name')] = tuple([[item.get('name') for item in group.findall(spec)]
for spec in ['./Bundle', './Group']])
grouptmp[group.get('name')][1].append(group.get('name'))