diff options
author | Seth Vidal <skvidal@fedoraproject.org> | 2007-09-27 17:02:58 -0400 |
---|---|---|
committer | Seth Vidal <skvidal@fedoraproject.org> | 2007-09-27 17:02:58 -0400 |
commit | f6151eb9b96126220961e056c66fb993bb652f19 (patch) | |
tree | d20017687505f8ae6505a272bb8c94826ca4627a /overlord/sslclient.py | |
parent | bff73023105ea0036b57d28f0571744f658cb2a8 (diff) | |
download | func-f6151eb9b96126220961e056c66fb993bb652f19.tar.gz func-f6151eb9b96126220961e056c66fb993bb652f19.tar.xz func-f6151eb9b96126220961e056c66fb993bb652f19.zip |
modify func/overlord to read config from certmaster and use config.py
Diffstat (limited to 'overlord/sslclient.py')
-rw-r--r-- | overlord/sslclient.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/overlord/sslclient.py b/overlord/sslclient.py index 2d2f38e..7406bfc 100644 --- a/overlord/sslclient.py +++ b/overlord/sslclient.py @@ -6,7 +6,6 @@ import xmlrpclib import urllib from func import SSLCommon -from func import config_data class SSL_Transport(xmlrpclib.Transport): @@ -38,14 +37,9 @@ class SSLXMLRPCServerProxy(xmlrpclib.ServerProxy): class FuncServer(SSLXMLRPCServerProxy): def __init__(self, uri, pem=None, crt=None, ca=None): - - config_obj = config_data.Config() - self.config = config_obj.get() - - hn = socket.getfqdn() - self.key = "%s/%s.pem" % (self.config['cert_dir'], hn) - self.cert = "%s/%s.cert" % (self.config['cert_dir'], hn) - self.ca = "%s/ca.cert" % self.config['cert_dir'] + self.pem = pem + self.crt = crt + self.ca = ca SSLXMLRPCServerProxy.__init__(self, uri, self.pem, |