ia64/xen-unstable

changeset 2249:2186fbfd11de

bitkeeper revision 1.1159.1.69 (4120808b8wy9kCiirenw5U48ZbJlFA)

Add default value for cpu_weight.
author mjw@wray-m-3.hpl.hp.com
date Mon Aug 16 09:38:19 2004 +0000 (2004-08-16)
parents 64ae4d06485a
children 613af610be8a
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Aug 16 09:33:03 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Aug 16 09:38:19 2004 +0000
     1.3 @@ -499,7 +499,7 @@ class XendDomainInfo:
     1.4          try:
     1.5              self.name = sxp.child_value(config, 'name')
     1.6              self.check_name(self.name)
     1.7 -	    self.cpu_weight = float(sxp.child_value(config, 'cpu_weight'))
     1.8 +	    self.cpu_weight = float(sxp.child_value(config, 'cpu_weight', '1'))
     1.9              if self.restore and self.dom:
    1.10                  xc.domain_setname(self.dom, self.name)
    1.11              self.memory = int(sxp.child_value(config, 'memory'))