summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-04-06 20:42:39 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-04-06 20:42:39 +0000
commit61d5b7caec10262206968e2dcbaf242806b5021e (patch)
tree2beaad0710d697069eb9338eac86d7d39dcb36f7 /src/lib
parentad9b5de849066b6926138094f98b9b22509ca7e0 (diff)
downloadbcfg2-61d5b7caec10262206968e2dcbaf242806b5021e.tar.gz
bcfg2-61d5b7caec10262206968e2dcbaf242806b5021e.tar.bz2
bcfg2-61d5b7caec10262206968e2dcbaf242806b5021e.zip
Metadata: fix default group assertion
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5154 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Metadata.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index f63e2d558..860bb78d2 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -367,6 +367,7 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
self.logger.error("Cannot set group for client %s; no default group set" % (client))
raise MetadataConsistencyError
self.set_profile(client, self.default, (None, None))
+ profile = self.default
[bundles, groups, categories] = self.groups[self.default]
newgroups = groups[:]
newbundles = bundles[:]