diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/xenmgr/lib/XendDomainInfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenmgr/lib/XendDomainInfo.py b/tools/xenmgr/lib/XendDomainInfo.py index 182b523d11..b263942c5b 100644 --- a/tools/xenmgr/lib/XendDomainInfo.py +++ b/tools/xenmgr/lib/XendDomainInfo.py @@ -126,7 +126,7 @@ class XendDomainInfo: sxpr.append(['state', state]) if self.info['shutdown']: reasons = ["poweroff", "reboot", "suspend"] - reason = reasons[info['shutdown_reason']] + reason = reasons[self.info['shutdown_reason']] sxpr.append(['shutdown_reason', reason]) sxpr.append(['cpu', self.info['cpu']]) sxpr.append(['cpu_time', self.info['cpu_time']/1e9]) |
