bitkeeper revision 1.1159.1.61 (411de57crUA7TOOChvm_Z8Af1U17xw)

blank space
This commit is contained in:
gm281@boulderdash.cl.cam.ac.uk committed 2004-08-14 10:12:12 +00:00
1 parent 903335eb04
commit d489ed6ebb
1 file changed
+6 -1
+6 -1
View File
@@ -475,6 +475,8 @@ class XendDomainInfo:
if not dominfo:
return
print 'check_name>', 'dom=', dominfo.name, dominfo.dom, 'self=', name, self.dom
if dominfo.is_terminated():
return
if not self.dom or (dominfo.dom != self.dom):
raise VmError('vm name clash: ' + name)
@@ -490,7 +492,9 @@ class XendDomainInfo:
try:
self.name = sxp.child_value(config, 'name')
self.check_name(self.name)
self.cpu_weight = float(sxp.child_value(config, 'cpu_weight'))
self.cpu_weight = float(sxp.child_value(config, 'cpu_weight'))
if self.restore and self.dom:
xc.domain_setname(self.dom, self.name)
self.memory = int(sxp.child_value(config, 'memory'))
if self.memory is None:
raise VmError('missing memory size')
@@ -630,6 +634,7 @@ class XendDomainInfo:
if self.restart_pending():
self.console.deregisterChannel()
else:
log.debug('Closing console, domain %s', self.id)
self.console.close()
chan = xend.getDomChannel(self.dom)
if chan:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.