diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-04-20 13:31:46 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2011-04-20 13:32:29 -0400 |
commit | 34af400ef16018e0753413454ba55af4c94856b0 (patch) | |
tree | c2d62afa3d6aeef7a94d3004225dd97c654d3a7e /src | |
parent | 9f5dafe97f04e68cda08d4c8e21cc300e3f6b4f1 (diff) | |
download | bcfg2-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.py | 3 |
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: |