From: aq <aquynh@gmail.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] XendProtocol.py: use XendRoot to get socket path
Date: Sun, 29 May 2005 00:25:26 -0500 [thread overview]
Message-ID: <9cde8bff050528222523099028@mail.gmail.com> (raw)
[-- 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
reply other threads:[~2005-05-29 5:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9cde8bff050528222523099028@mail.gmail.com \
--to=aquynh@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.