direct-io.hg

changeset 12089:c383cb0945a7

[XEND] Fix shutdown reasons from Xen API

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Thu Oct 05 20:03:16 2006 +0100 (2006-10-05)
parents 6f0b467a92c6
children d147be77861d
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Thu Oct 05 20:02:50 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Thu Oct 05 20:03:16 2006 +0100
     1.3 @@ -900,12 +900,12 @@ class XendAPI:
     1.4      def vm_clean_reboot(self, session, vm_ref):
     1.5          xendom = XendDomain.instance()
     1.6          xeninfo = xendom.get_vm_by_uuid(vm_ref)
     1.7 -        xeninfo.shutdown(XendDomainInfo.DOMAIN_REBOOT)
     1.8 +        xeninfo.shutdown("reboot")
     1.9          return xen_api_success_void()
    1.10      def vm_clean_shutdown(self, session, vm_ref):
    1.11          xendom = XendDomain.instance()
    1.12          xeninfo = xendom.get_vm_by_uuid(vm_ref)
    1.13 -        xeninfo.shutdown(XendDomainInfo.DOMAIN_HALT)
    1.14 +        xeninfo.shutdown("poweroff")
    1.15          return xen_api_success_void()
    1.16      def vm_clone(self, session, vm_ref):
    1.17          return xen_api_error(XEND_ERROR_UNSUPPORTED)