aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-06-06 15:06:50 +0000
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-06-06 15:06:50 +0000
commit12f5438d72af20b0b7b2c690bee79ebfb2d57419 (patch)
tree04b21f7c9b8015273749c0cac1495ec800a325ac
parent54c1b7d5a1786dc2b37fb1ced01b6ed10e31c67b (diff)
downloadxen-12f5438d72af20b0b7b2c690bee79ebfb2d57419.tar.gz
xen-12f5438d72af20b0b7b2c690bee79ebfb2d57419.tar.bz2
xen-12f5438d72af20b0b7b2c690bee79ebfb2d57419.zip
bitkeeper revision 1.1662.1.6 (42a4668acAGbhHtR6a2E9nRSv0bjrA)
XendDomainInfo.py: Add setName. Signed-off-by: Mike Wray <mike.wray@hp.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
-rw-r--r--tools/python/xen/xend/XendDomainInfo.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index 23e519abc3..13c0aa0ef8 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -219,7 +219,8 @@ class XendDomainInfo:
if config:
vm.construct(config)
else:
- vm.name = sxp.child_value(savedinfo, 'name', "Domain-%d" % info['dom'])
+ vm.setName(sxp.child_value(savedinfo, 'name',
+ "Domain-%d" % info['dom']))
vm.recreate = False
vm.savedinfo = None
@@ -292,6 +293,10 @@ class XendDomainInfo:
def getDomain(self):
return self.id
+ def setName(self, name):
+ self.name = name
+ #self.db.name = self.name
+
def getName(self):
return self.name
@@ -477,7 +482,7 @@ class XendDomainInfo:
self.config = config
try:
# Initial domain create.
- self.name = sxp.child_value(config, 'name')
+ self.setName(sxp.child_value(config, 'name'))
self.check_name(self.name)
self.configure_cpus(config)
self.find_image_handler()