mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix VM.set_actions_after_{reboot,shutdown}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
e8943dc06d
commit
9b9c64266b
1 file changed
+2
-2
@@ -1284,12 +1284,12 @@ class XendAPI(object):
|
||||
return xen_api_todo()
|
||||
|
||||
def VM_set_actions_after_shutdown(self, session, vm_ref, action):
|
||||
if action not in XEN_API_ON_NORMAL_EXIST:
|
||||
if action not in XEN_API_ON_NORMAL_EXIT:
|
||||
return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref])
|
||||
return self.VM_set('actions_after_shutdown', session, vm_ref, action)
|
||||
|
||||
def VM_set_actions_after_reboot(self, session, vm_ref, action):
|
||||
if action not in XEN_API_ON_NORMAL_EXIST:
|
||||
if action not in XEN_API_ON_NORMAL_EXIT:
|
||||
return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref])
|
||||
return self.VM_set('actions_after_reboot', session, vm_ref, action)
|
||||
|
||||
|
||||