summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-02-21 16:43:05 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-02-21 16:43:05 +0000
commit6ae6bbcbcbad90fdaa1c69730ef02cbf3e88ed62 (patch)
tree7b5c73ff97bf033dedfdb06efd5713b2e6a6b659 /src
parentc921c8419e84461fc721b4d06fc59230fd952452 (diff)
downloadbcfg2-6ae6bbcbcbad90fdaa1c69730ef02cbf3e88ed62.tar.gz
bcfg2-6ae6bbcbcbad90fdaa1c69730ef02cbf3e88ed62.tar.bz2
bcfg2-6ae6bbcbcbad90fdaa1c69730ef02cbf3e88ed62.zip
Fix profile assertion
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1753 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Metadata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py
index f62cef65a..14c6aa046 100644
--- a/src/lib/Server/Metadata.py
+++ b/src/lib/Server/Metadata.py
@@ -122,7 +122,7 @@ class Metadata:
cli = self.clientdata.xpath('/Clients/Client[@name="%s"]' % (client))
cli[0].set('group', group)
else:
- lxml.etree.SubElement(self.clientdata.getroot(), 'Client', name=client, group=group)
+ lxml.etree.SubElement(self.clientdata.getroot(), 'Client', name=client, profile=group)
self.clients[client] = group
self.write_back_clients()
@@ -133,7 +133,7 @@ class Metadata:
except IOError:
self.logger.error("Failed to write clients.xml")
raise MetadataRuntimeError
- datafile.write(lxml.etree.tostring(self.clientdata))
+ datafile.write(lxml.etree.tostring(self.clientdata.getroot()))
datafile.close()
def find_toolset(self, client):