mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
bitkeeper revision 1.1159.70.3 (41389f22BlnxYbup7d6jcZXvICR6qg)
Fix problem with domain shutdown events.
This commit is contained in:
1 parent
f29a780db6
commit
353cb77788
1 file changed
+2
-2
@@ -243,12 +243,12 @@ class XendDomain:
|
||||
if d['shutdown']:
|
||||
reason = XendDomainInfo.shutdown_reason(d['shutdown_reason'])
|
||||
log.debug('XendDomain>reap> shutdown id=%s reason=%s', id, reason)
|
||||
dominfo = self.domain_by_id.get(id)
|
||||
name = (dominfo and dominfo.name) or '??'
|
||||
if reason in ['suspend']:
|
||||
dominfo = self.domain_by_id.get(id)
|
||||
if dominfo.is_terminated():
|
||||
log.debug('XendDomain>reap> Suspended domain died id=%s', id)
|
||||
else:
|
||||
name = (dominfo and dominfo.name) or '??'
|
||||
eserver.inject('xend.domain.suspended', [name, id])
|
||||
continue
|
||||
if reason in ['poweroff', 'reboot']:
|
||||
|
||||