aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-27 09:06:10 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-27 09:06:10 +0100
commitd72cae799f70aa689484bf6c7647d3de2033783c (patch)
treeb5a62731173f334394195bb7912bd5d45ca63b96 /tools
parentfecde045d39413368ad197016664291d85bbb173 (diff)
downloadxen-d72cae799f70aa689484bf6c7647d3de2033783c.tar.gz
xen-d72cae799f70aa689484bf6c7647d3de2033783c.tar.bz2
xen-d72cae799f70aa689484bf6c7647d3de2033783c.zip
Fix Xen API console methods that use undefined variables.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/XendAPI.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/python/xen/xend/XendAPI.py b/tools/python/xen/xend/XendAPI.py
index 2192d334b5..9acf83adc5 100644
--- a/tools/python/xen/xend/XendAPI.py
+++ b/tools/python/xen/xend/XendAPI.py
@@ -2378,11 +2378,13 @@ class XendAPI(object):
return xen_api_success(cons)
def console_get_location(self, session, console_ref):
+ xendom = XendDomain.instance()
return xen_api_success(xendom.get_dev_property_by_uuid('console',
console_ref,
'location'))
def console_get_protocol(self, session, console_ref):
+ xendom = XendDomain.instance()
return xen_api_success(xendom.get_dev_property_by_uuid('console',
console_ref,
'protocol'))