26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
# HG changeset patch
|
|
# User kfraser@localhost.localdomain
|
|
# Date 1185523570 -3600
|
|
# Node ID e63b331d869892fed2c6f582642a6771c1bda613
|
|
# Parent f035c4d9880a453d8c309fdf0e06dedefd96684c
|
|
Fix Xen API console methods that use undefined variables.
|
|
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
|
|
|
|
diff -r f035c4d9880a -r e63b331d8698 tools/python/xen/xend/XendAPI.py
|
|
--- a/tools/python/xen/xend/XendAPI.py Fri Jul 27 09:04:35 2007 +0100
|
|
+++ b/tools/python/xen/xend/XendAPI.py Fri Jul 27 09:06:10 2007 +0100
|
|
@@ -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'))
|