[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] XendDomainInfo.py:
ChangeSet 1.1662.1.6, 2005/06/06 16:06:50+01:00, cl349@xxxxxxxxxxxxxxxxxxxx XendDomainInfo.py: Add setName. Signed-off-by: Mike Wray <mike.wray@xxxxxx> Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> XendDomainInfo.py | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff -Nru a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py 2005-06-09 13:05:45 -04:00 +++ b/tools/python/xen/xend/XendDomainInfo.py 2005-06-09 13:05:45 -04:00 @@ -219,7 +219,8 @@ 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 @@ 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 @@ 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() _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |