mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Fix Xen API console methods that use undefined variables.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
This commit is contained in:
1 parent
fecde045d3
commit
d72cae799f
1 file changed
+2
@@ -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'))
|
||||
|
||||