[Xen-changelog] [xen-unstable] VM.actions_after_[shutdown|reboot|suspend|crash] were not set properly

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Xen-changelog] [xen-unstable] VM.actions_after_[shutdown|reboot|suspend|crash] were not set properly

Xen patchbot-unstable
# HG changeset patch
# User [hidden email]
# Date 1173100708 0
# Node ID 43b0be37736b8739aa6cdf1cde3cdece6af567c4
# Parent  7089c2adef1ee705e8cb80216b3b21c514dbcfa6
VM.actions_after_[shutdown|reboot|suspend|crash] were not set properly
in VM record returned via Xen API.
This patch fixes typos in key name for these fields.

Signed-off-by: Jim Fehlig <[hidden email]>
---
 tools/python/xen/xend/XendDomainInfo.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff -r 7089c2adef1e -r 43b0be37736b tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Mon Mar 05 11:54:55 2007 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py Mon Mar 05 13:18:28 2007 +0000
@@ -2090,26 +2090,26 @@ class XendDomainInfo:
         return self.info.get('tools_version', {})
     
     def get_on_shutdown(self):
-        after_shutdown = self.info.get('action_after_shutdown')
+        after_shutdown = self.info.get('actions_after_shutdown')
         if not after_shutdown or after_shutdown not in XEN_API_ON_NORMAL_EXIT:
             return XEN_API_ON_NORMAL_EXIT[-1]
         return after_shutdown
 
     def get_on_reboot(self):
-        after_reboot = self.info.get('action_after_reboot')
+        after_reboot = self.info.get('actions_after_reboot')
         if not after_reboot or after_reboot not in XEN_API_ON_NORMAL_EXIT:
             return XEN_API_ON_NORMAL_EXIT[-1]
         return after_reboot
 
     def get_on_suspend(self):
         # TODO: not supported        
-        after_suspend = self.info.get('action_after_suspend')
+        after_suspend = self.info.get('actions_after_suspend')
         if not after_suspend or after_suspend not in XEN_API_ON_NORMAL_EXIT:
             return XEN_API_ON_NORMAL_EXIT[-1]
         return after_suspend        
 
     def get_on_crash(self):
-        after_crash = self.info.get('action_after_crash')
+        after_crash = self.info.get('actions_after_crash')
         if not after_crash or after_crash not in XEN_API_ON_CRASH_BEHAVIOUR:
             return XEN_API_ON_CRASH_BEHAVIOUR[0]
         return after_crash

_______________________________________________
Xen-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog