mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
54c1b7d5a1
commit
12f5438d72
1 file changed
+7
-2
@@ -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()
|
||||
|
||||