All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] XendProtocol.py: use XendRoot to get socket path
@ 2005-05-29  5:25 aq
  0 siblings, 0 replies; only message in thread
From: aq @ 2005-05-29  5:25 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 310 bytes --]

This patch makes XendProtocol.py uses XendRoot to get the path to xend
domain-socket (patched against -unstable ChangeSet@1.1575)

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: xendprotocol_socket.patch --]
[-- Type: text/x-patch; name="xendprotocol_socket.patch", Size: 753 bytes --]

===== tools/python/xen/xend/XendProtocol.py 1.2 vs edited =====
--- 1.2/tools/python/xen/xend/XendProtocol.py	2005-04-27 09:04:43 -05:00
+++ edited/tools/python/xen/xend/XendProtocol.py	2005-05-29 13:19:37 -05: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):

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-29  5:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-29  5:25 [PATCH] XendProtocol.py: use XendRoot to get socket path aq

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.