bitkeeper revision 1.1159.70.3 (41389f22BlnxYbup7d6jcZXvICR6qg)

Fix problem with domain shutdown events.
This commit is contained in:
mjw@wray-m-3.hpl.hp.com committed 2004-09-03 16:43:14 +00:00
1 parent f29a780db6
commit 353cb77788
1 file changed
+2 -2
+2 -2
View File
@@ -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']:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.