From: Ewan Mellor Date: Wed, 8 Nov 2006 11:08:18 +0000 (+0000) Subject: Save the old domid when restarting, as it may get wiped out before we need to X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15567^2~60 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d1e3da560b86181c01d29f0e6157dec549690000;p=xen.git Save the old domid when restarting, as it may get wiped out before we need to log it (on restart failure). Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index fa0eb0f65d..64d22fbb7a 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -994,6 +994,7 @@ class XendDomainInfo: self.destroy() return + old_domid = self.domid self._writeVm(RESTART_IN_PROGRESS, 'True') now = time.time() @@ -1040,7 +1041,7 @@ class XendDomainInfo: self._removeVm(RESTART_IN_PROGRESS) raise except: - log.exception('Failed to restart domain %s.', str(self.domid)) + log.exception('Failed to restart domain %s.', str(old_domid)) def getSysMem(self): info = dom_get(self.domid)