diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-07-27 09:06:10 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-07-27 09:06:10 +0100 |
commit | d72cae799f70aa689484bf6c7647d3de2033783c (patch) | |
tree | b5a62731173f334394195bb7912bd5d45ca63b96 /tools | |
parent | fecde045d39413368ad197016664291d85bbb173 (diff) | |
download | xen-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.py | 2 |
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')) |