ia64/xen-unstable

changeset 5220:e503d1675572

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>
author cl349@firebug.cl.cam.ac.uk
date Tue May 31 09:14:28 2005 +0000 (2005-05-31)
parents 05e547825be8
children 0ecc863ef3ed
files tools/python/xen/xend/XendProtocol.py
line diff
     1.1 --- a/tools/python/xen/xend/XendProtocol.py	Tue May 31 09:10:26 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendProtocol.py	Tue May 31 09:14:28 2005 +0000
     1.3 @@ -7,6 +7,8 @@ import types
     1.4  from encode import *
     1.5  import sxp
     1.6  
     1.7 +from xen.xend import XendRoot; xroot = XendRoot.instance()
     1.8 +
     1.9  DEBUG = 0
    1.10  
    1.11  HTTP_OK                              = 200
    1.12 @@ -179,11 +181,9 @@ class UnixXendClientProtocol(HttpXendCli
    1.13      """A synchronous xend client using a unix-domain socket.
    1.14      """
    1.15  
    1.16 -    XEND_PATH_DEFAULT = '/var/lib/xend/xend-socket'
    1.17 -    
    1.18      def __init__(self, path=None):
    1.19          if path is None:
    1.20 -            path = self.XEND_PATH_DEFAULT
    1.21 +            path = xroot.get_xend_unix_path()
    1.22          self.path = path
    1.23  
    1.24      def makeConnection(self, url):