[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XEND] Fix HVM image shutdown.



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID e5067f9b268fc339ec28767ad50e51aad5f3b74a
# Parent  b21ff7716f8719e44e4070fbdf02b020146429d5
[XEND] Fix HVM image shutdown.

Missed HVM image creation's hook into XendDomainInfo.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/image.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r b21ff7716f87 -r e5067f9b268f tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Fri Nov 03 12:32:26 2006 +0000
+++ b/tools/python/xen/xend/image.py    Fri Nov 03 15:15:16 2006 +0000
@@ -460,8 +460,8 @@ class HVMImageHandler(ImageHandler):
 
         reason = vm._readDom('control/shutdown')
         log.debug("hvm_shutdown fired, shutdown reason=%s", reason)
-        for x in shutdown_reasons.keys():
-            if shutdown_reasons[x] == reason:
+        for x in DOMAIN_SHUTDOWN_REASONS.keys():
+            if DOMAIN_SHUTDOWN_REASONS[x] == reason:
                 vm.info['shutdown'] = 1
                 vm.info['shutdown_reason'] = x
                 vm.refreshShutdown(vm.info)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.