Fix console methods that use undefined variables
PATCH 1/1 Fix console methods that use undefined variables
A few of the console methods were using xendom when not defined.
Regards,
Jim
# HG changeset patch
# User Jim Fehlig <[email protected]>
# Date 1185324782 21600
# Node ID 5a9efcada31c6c28457c7c6c68dd3d1ad712519b # Parent 1f348e70a5affdea9b44c1e39cd5ef094ad4a0bf Fix Xen API console methods that use undefined variables.
Signed-off-by Jim Fehlig <[email protected]>
tools/python/xen/xend/XendAPI.py +2 -0
@@ -2357,11 +2357,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'))
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel