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

[Xen-changelog] [xen-unstable] [XEND] Fix shutdown reasons from Xen API



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID c383cb0945a7f87b77a825f42dfdc553ae3a76c1
# Parent  6f0b467a92c61b74c663668f1eaf9c8463f39303
[XEND] Fix shutdown reasons from Xen API

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

diff -r 6f0b467a92c6 -r c383cb0945a7 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Thu Oct 05 20:02:50 2006 +0100
+++ b/tools/python/xen/xend/XendAPI.py  Thu Oct 05 20:03:16 2006 +0100
@@ -900,12 +900,12 @@ class XendAPI:
     def vm_clean_reboot(self, session, vm_ref):
         xendom = XendDomain.instance()
         xeninfo = xendom.get_vm_by_uuid(vm_ref)
-        xeninfo.shutdown(XendDomainInfo.DOMAIN_REBOOT)
+        xeninfo.shutdown("reboot")
         return xen_api_success_void()
     def vm_clean_shutdown(self, session, vm_ref):
         xendom = XendDomain.instance()
         xeninfo = xendom.get_vm_by_uuid(vm_ref)
-        xeninfo.shutdown(XendDomainInfo.DOMAIN_HALT)
+        xeninfo.shutdown("poweroff")
         return xen_api_success_void()
     def vm_clone(self, session, vm_ref):
         return xen_api_error(XEND_ERROR_UNSUPPORTED)

_______________________________________________
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®.