WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix Xen API console methods that use unde

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix Xen API console methods that use undefined variables.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 27 Jul 2007 03:24:01 -0700
Delivery-date: Fri, 27 Jul 2007 03:22:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1185523570 -3600
# Node ID e63b331d869892fed2c6f582642a6771c1bda613
# Parent  f035c4d9880a453d8c309fdf0e06dedefd96684c
Fix Xen API console methods that use undefined variables.
Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py |    2 ++
 1 files changed, 2 insertions(+)

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'))

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix Xen API console methods that use undefined variables., Xen patchbot-unstable <=