From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Fehlig Subject: [PATCH][xenapi] Fix console methods that use undefined variables Date: Tue, 24 Jul 2007 19:00:14 -0600 Message-ID: <46A6A09E.3070403@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070806040804030704020402" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------070806040804030704020402 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit A few of the console methods were using xendom when not defined. Regards, Jim --------------070806040804030704020402 Content-Type: text/x-patch; name="xend_console_undefined.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xend_console_undefined.patch" # HG changeset patch # User Jim Fehlig # Date 1185324782 21600 # Node ID 5a9efcada31c6c28457c7c6c68dd3d1ad712519b # Parent 1f348e70a5affdea9b44c1e39cd5ef094ad4a0bf Fix Xen API console methods that use undefined variables. Signed-off-by: Jim Fehlig diff -r 1f348e70a5af -r 5a9efcada31c tools/python/xen/xend/XendAPI.py --- a/tools/python/xen/xend/XendAPI.py Tue Jul 10 11:10:38 2007 +0100 +++ b/tools/python/xen/xend/XendAPI.py Tue Jul 24 18:53:02 2007 -0600 @@ -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')) --------------070806040804030704020402 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------070806040804030704020402--