diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-02-21 16:43:05 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-02-21 16:43:05 +0000 |
commit | 6ae6bbcbcbad90fdaa1c69730ef02cbf3e88ed62 (patch) | |
tree | 7b5c73ff97bf033dedfdb06efd5713b2e6a6b659 | |
parent | c921c8419e84461fc721b4d06fc59230fd952452 (diff) | |
download | bcfg2-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
-rw-r--r-- | src/lib/Server/Metadata.py | 4 |
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): |