# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1173562918 0
# Node ID f6656928d7d14b76826d568e9ddb91b1e21f999f
# Parent 10f5478a91cda06c0b81d85177aaed46259d13a9
Fix VM.set_actions_after_{reboot,shutdown}.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
tools/python/xen/xend/XendAPI.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r 10f5478a91cd -r f6656928d7d1 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py Sat Mar 10 20:20:24 2007 +0000
+++ b/tools/python/xen/xend/XendAPI.py Sat Mar 10 21:41:58 2007 +0000
@@ -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)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|