bitkeeper revision 1.1606 (429c2af45-eQkEjNUi7xp8oigsbTSg)

XendProtocol.py:
  Make XendProtocol.py use XendRoot to get the path to xend
  domain-socket.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-05-31 09:14:28 +00:00
1 parent a49e6a7461
commit 0f9c68f0c2
1 file changed
+3 -3
+3 -3
View File
@@ -7,6 +7,8 @@ import types
from encode import *
import sxp
from xen.xend import XendRoot; xroot = XendRoot.instance()
DEBUG = 0
HTTP_OK = 200
@@ -179,11 +181,9 @@ class UnixXendClientProtocol(HttpXendClientProtocol):
"""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):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.