direct-io.hg

changeset 14339:f6656928d7d1

Fix VM.set_actions_after_{reboot,shutdown}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Mar 10 21:41:58 2007 +0000 (2007-03-10)
parents 10f5478a91cd
children 620212e48908
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Sat Mar 10 20:20:24 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Sat Mar 10 21:41:58 2007 +0000
     1.3 @@ -1284,12 +1284,12 @@ class XendAPI(object):
     1.4          return xen_api_todo()
     1.5      
     1.6      def VM_set_actions_after_shutdown(self, session, vm_ref, action):
     1.7 -        if action not in XEN_API_ON_NORMAL_EXIST:
     1.8 +        if action not in XEN_API_ON_NORMAL_EXIT:
     1.9              return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref])
    1.10          return self.VM_set('actions_after_shutdown', session, vm_ref, action)
    1.11      
    1.12      def VM_set_actions_after_reboot(self, session, vm_ref, action):
    1.13 -        if action not in XEN_API_ON_NORMAL_EXIST:
    1.14 +        if action not in XEN_API_ON_NORMAL_EXIT:
    1.15              return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref])
    1.16          return self.VM_set('actions_after_reboot', session, vm_ref, action)
    1.17