[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Don't explode when running xm as non-root
The attached patch fixes a recent regression in xm which causes a stack trace if a user tries to run xm as a non-root user. I ran the latest xm-test, and nothing (else) broke as a result of this patch. Signed-off-by: Dan Smith <danms@xxxxxxxxxx> diff -r f98c8238e909 tools/python/xen/xend/XendProtocol.py --- a/tools/python/xen/xend/XendProtocol.py Wed Oct 5 18:15:56 2005 +++ b/tools/python/xen/xend/XendProtocol.py Wed Oct 5 15:14:52 2005 @@ -32,9 +32,6 @@ HTTP_NO_CONTENT = 204 -xroot = XendRoot.instance() - - class XendError(RuntimeError): """Error class for 'expected errors' when talking to xend. """ @@ -202,7 +199,7 @@ def __init__(self, path=None): if path is None: - path = xroot.get_xend_unix_path() + path = XendRoot.instance().get_xend_unix_path() self.path = path def makeConnection(self, url): -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@xxxxxxxxxx _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |