summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2011-04-20 13:31:46 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2011-04-20 13:32:29 -0400
commit34af400ef16018e0753413454ba55af4c94856b0 (patch)
treec2d62afa3d6aeef7a94d3004225dd97c654d3a7e /src
parent9f5dafe97f04e68cda08d4c8e21cc300e3f6b4f1 (diff)
downloadbcfg2-34af400ef16018e0753413454ba55af4c94856b0.tar.gz
bcfg2-34af400ef16018e0753413454ba55af4c94856b0.tar.bz2
bcfg2-34af400ef16018e0753413454ba55af4c94856b0.zip
fixed duplicate group detection in Metadata
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/Metadata.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index 98caa577d..ff723941f 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -478,8 +478,7 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
grouptmp = {}
self.categories = {}
groupseen = list()
- for group in xdata.xpath('//Groups/Group') \
- + xdata.xpath('Group'):
+ for group in xdata.xpath('//Groups/Group'):
if group.get('name') not in groupseen:
groupseen.append(group.get('name'))
else: