From 59c2ee6282736e99f9519589df226cbff8df2b0a Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 19 Oct 2010 13:38:16 -0400 Subject: [PATCH] fix url generated by get_server() --- sfa/client/sfi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 87579c3f..ceb790a4 100755 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -514,7 +514,11 @@ class Sfi: """ Return an instnace of an xmlrpc server connection """ - url = "http://%s:%s" % (host, port) + # port is appended onto the domain, before the path. Should look like: + # http://domain:port/path + host_parts = host.split('/') + host_parts[0] = host_parts[0] + ":" + str(port) + url = "http://%s" % "/".join(host_parts) return xmlrpcprotocol.get_server(url, keyfile, certfile, self.options) def get_server_from_opts(self, opts): -- 2.43.0