ia64/xen-unstable

changeset 5339:a3b60b641063

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>
author cl349@firebug.cl.cam.ac.uk
date Mon Jun 06 15:06:50 2005 +0000 (2005-06-06)
parents c3febeed5ba7
children 4c7d2c6e932a
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Jun 06 15:02:32 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Jun 06 15:06:50 2005 +0000
     1.3 @@ -219,7 +219,8 @@ class XendDomainInfo:
     1.4          if config:
     1.5              vm.construct(config)
     1.6          else:
     1.7 -            vm.name = sxp.child_value(savedinfo, 'name', "Domain-%d" % info['dom'])
     1.8 +            vm.setName(sxp.child_value(savedinfo, 'name',
     1.9 +                                       "Domain-%d" % info['dom']))
    1.10          vm.recreate = False
    1.11          vm.savedinfo = None
    1.12  
    1.13 @@ -292,6 +293,10 @@ class XendDomainInfo:
    1.14      def getDomain(self):
    1.15          return self.id
    1.16  
    1.17 +    def setName(self, name):
    1.18 +        self.name = name
    1.19 +        #self.db.name = self.name
    1.20 +
    1.21      def getName(self):
    1.22          return self.name
    1.23  
    1.24 @@ -477,7 +482,7 @@ class XendDomainInfo:
    1.25          self.config = config
    1.26          try:
    1.27              # Initial domain create.
    1.28 -            self.name = sxp.child_value(config, 'name')
    1.29 +            self.setName(sxp.child_value(config, 'name'))
    1.30              self.check_name(self.name)
    1.31              self.configure_cpus(config)
    1.32              self.find_image_handler()