ia64/xen-unstable

changeset 15656:e63b331d8698

Fix Xen API console methods that use undefined variables.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author kfraser@localhost.localdomain
date Fri Jul 27 09:06:10 2007 +0100 (2007-07-27)
parents f035c4d9880a
children 2450743f51b2
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Fri Jul 27 09:04:35 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Fri Jul 27 09:06:10 2007 +0100
     1.3 @@ -2378,11 +2378,13 @@ class XendAPI(object):
     1.4          return xen_api_success(cons)
     1.5  
     1.6      def console_get_location(self, session, console_ref):
     1.7 +        xendom = XendDomain.instance()
     1.8          return xen_api_success(xendom.get_dev_property_by_uuid('console',
     1.9                                                                 console_ref,
    1.10                                                                 'location'))
    1.11  
    1.12      def console_get_protocol(self, session, console_ref):
    1.13 +        xendom = XendDomain.instance()
    1.14          return xen_api_success(xendom.get_dev_property_by_uuid('console',
    1.15                                                                 console_ref,
    1.16                                                                 'protocol'))