ia64/xen-unstable

changeset 2419:0f251ff3f765

bitkeeper revision 1.1159.70.3 (41389f22BlnxYbup7d6jcZXvICR6qg)

Fix problem with domain shutdown events.
author mjw@wray-m-3.hpl.hp.com
date Fri Sep 03 16:43:14 2004 +0000 (2004-09-03)
parents f67e97f4012f
children 2c92a3484f05
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Fri Sep 03 11:49:52 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Fri Sep 03 16:43:14 2004 +0000
     1.3 @@ -243,12 +243,12 @@ class XendDomain:
     1.4              if d['shutdown']:
     1.5                  reason = XendDomainInfo.shutdown_reason(d['shutdown_reason'])
     1.6                  log.debug('XendDomain>reap> shutdown id=%s reason=%s', id, reason)
     1.7 +                dominfo = self.domain_by_id.get(id)
     1.8 +                name = (dominfo and dominfo.name) or '??'
     1.9                  if reason in ['suspend']:
    1.10 -                    dominfo = self.domain_by_id.get(id)
    1.11                      if dominfo.is_terminated():
    1.12                          log.debug('XendDomain>reap> Suspended domain died id=%s', id)
    1.13                      else:
    1.14 -                        name = (dominfo and dominfo.name) or '??'
    1.15                          eserver.inject('xend.domain.suspended', [name, id])
    1.16                          continue
    1.17                  if reason in ['poweroff', 'reboot']: