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] XendProtocol.py:

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] XendProtocol.py:
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 31 May 2005 09:14:28 +0000
Delivery-date: Tue, 31 May 2005 16:01:56 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1606, 2005/05/31 10:14:28+01:00, cl349@xxxxxxxxxxxxxxxxxxxx

        XendProtocol.py:
          Make XendProtocol.py use XendRoot to get the path to xend
          domain-socket.
        Signed-off-by: Nguyen Anh Quynh <aquynh@xxxxxxxxx>
        Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>



 XendProtocol.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/tools/python/xen/xend/XendProtocol.py 
b/tools/python/xen/xend/XendProtocol.py
--- a/tools/python/xen/xend/XendProtocol.py     2005-05-31 12:02:47 -04:00
+++ b/tools/python/xen/xend/XendProtocol.py     2005-05-31 12:02:47 -04:00
@@ -7,6 +7,8 @@
 from encode import *
 import sxp
 
+from xen.xend import XendRoot; xroot = XendRoot.instance()
+
 DEBUG = 0
 
 HTTP_OK                              = 200
@@ -179,11 +181,9 @@
     """A synchronous xend client using a unix-domain socket.
     """
 
-    XEND_PATH_DEFAULT = '/var/lib/xend/xend-socket'
-    
     def __init__(self, path=None):
         if path is None:
-            path = self.XEND_PATH_DEFAULT
+            path = xroot.get_xend_unix_path()
         self.path = path
 
     def makeConnection(self, url):

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] XendProtocol.py:, BitKeeper Bot <=