summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-01 13:05:26 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-01 13:05:32 -0400
commiteaaa933b1215f409038adaf01800fefd405d07a2 (patch)
treea7a02f1f128b508747ed6a7fc3ad60db4c2832f5 /src/lib
parent1aa4792d349c775c1c0ec952799c9279b8db6034 (diff)
downloadbcfg2-eaaa933b1215f409038adaf01800fefd405d07a2.tar.gz
bcfg2-eaaa933b1215f409038adaf01800fefd405d07a2.tar.bz2
bcfg2-eaaa933b1215f409038adaf01800fefd405d07a2.zip
Fixed inversion of category-group pairs from Connector plugins in
ClientMetadata.categories
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Metadata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Metadata.py b/src/lib/Bcfg2/Server/Plugins/Metadata.py
index 4929cb52d..8b0fc16ce 100644
--- a/src/lib/Bcfg2/Server/Plugins/Metadata.py
+++ b/src/lib/Bcfg2/Server/Plugins/Metadata.py
@@ -270,7 +270,7 @@ class XMLMetadataConfig(Bcfg2.Server.Plugin.XMLFileBacked):
class ClientMetadata(object):
"""This object contains client metadata."""
# pylint: disable=R0913
- def __init__(self, client, profile, groups, bundles, aliases, addresses,
+ def __init__(self, client, profile, groups, bundles, aliases, addresses,
categories, uuid, password, version, query):
self.hostname = client
self.profile = profile
@@ -1140,7 +1140,7 @@ class Metadata(Bcfg2.Server.Plugin.Metadata,
imd.hostname,
imd.categories[category]))
continue
- imd.categories[group] = category
+ imd.categories[category] = group
imd.groups.add(group)
self._merge_groups(imd.hostname, imd.groups,