Don't explode when running xm as non-root
PATCH 1/1 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 <[email protected]>
tools/python/xen/xend/XendProtocol.py +1 -4
@@ -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):
Signature · 4 lines
Dan Smith IBM Linux Technology Center Open Hypervisor Team email: [email protected]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel