ia64/xen-unstable

changeset 1548:c0d5c1dccaca

bitkeeper revision 1.999.1.2 (40d8923aguFPdqjwxtcBjkCDze4bkQ)

Fix shutdown info display.
author mjw@wray-m-3.hpl.hp.com
date Tue Jun 22 20:10:34 2004 +0000 (2004-06-22)
parents 894c33426ae1
children 7c46576a93c1 01fa2ad07df0
files tools/xenmgr/lib/XendDomainInfo.py
line diff
     1.1 --- a/tools/xenmgr/lib/XendDomainInfo.py	Tue Jun 22 20:06:52 2004 +0000
     1.2 +++ b/tools/xenmgr/lib/XendDomainInfo.py	Tue Jun 22 20:10:34 2004 +0000
     1.3 @@ -126,7 +126,7 @@ class XendDomainInfo:
     1.4              sxpr.append(['state', state])
     1.5              if self.info['shutdown']:
     1.6                  reasons = ["poweroff", "reboot", "suspend"]
     1.7 -                reason = reasons[info['shutdown_reason']]
     1.8 +                reason = reasons[self.info['shutdown_reason']]
     1.9                  sxpr.append(['shutdown_reason', reason])
    1.10              sxpr.append(['cpu', self.info['cpu']])
    1.11              sxpr.append(['cpu_time', self.info['cpu_time']/1e9])