ia64/xen-unstable

changeset 12373:f5b98471d6ff

[XEND] Add missing parameter and import from XendAPI and XendCheckpoint.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Nov 10 13:09:01 2006 +0000 (2006-11-10)
parents 7df5d39a0d9a
children 5cdd4da17036
files tools/python/xen/xend/XendAPI.py tools/python/xen/xend/XendCheckpoint.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Fri Nov 10 12:49:54 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Fri Nov 10 13:09:01 2006 +0000
     1.3 @@ -451,8 +451,8 @@ class XendAPI:
     1.4          return xen_api_success_void()
     1.5      def host_get_name_description(self, session, host_ref):
     1.6          return xen_api_success(XendNode.instance().description)
     1.7 -    def host_set_name_description(self, session, host_ref):
     1.8 -        XendNode.instance().set_description(new_description)
     1.9 +    def host_set_name_description(self, session, host_ref, new_desc):
    1.10 +        XendNode.instance().set_description(new_desc)
    1.11          return xen_api_success_void()
    1.12      def host_get_software_version(self, session, host_ref):
    1.13          return xen_api_success(XendNode.instance().xen_version())
     2.1 --- a/tools/python/xen/xend/XendCheckpoint.py	Fri Nov 10 12:49:54 2006 +0000
     2.2 +++ b/tools/python/xen/xend/XendCheckpoint.py	Fri Nov 10 13:09:01 2006 +0000
     2.3 @@ -19,6 +19,7 @@ from xen.xend import balloon, sxp
     2.4  from xen.xend.XendError import XendError
     2.5  from xen.xend.XendLogging import log
     2.6  from xen.xend.XendConstants import *
     2.7 +from xen.xend.XendConfig import XendConfig
     2.8  
     2.9  SIGNATURE = "LinuxGuestRecord"
    2.10  XC_SAVE = "xc_save"