Changeset 2729e48 for fedd/fedd.py
- Timestamp:
- Nov 29, 2008 11:31:03 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 2dd442f
- Parents:
- 0a20ef8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd.py
r0a20ef8 r2729e48 1 1 #!/usr/local/bin/python 2 2 3 import sys3 import os,sys 4 4 5 5 from optparse import OptionParser 6 6 7 from fedd _server import fedd_server, fedd_xmlrpc_handler, fedd_soap_handler8 from fedd _config_parser import fedd_config_parser9 from fedd _util import fedd_ssl_context10 from fedd _deter_impl import new_feddservice7 from fedd.fedd_server import fedd_server, fedd_xmlrpc_handler, fedd_soap_handler 8 from fedd.fedd_config_parser import fedd_config_parser 9 from fedd.fedd_util import fedd_ssl_context 10 from fedd.fedd_deter_impl import new_feddservice 11 11 12 12 from threading import * … … 115 115 sys.exit("Error configuring fedd: %s" % str) 116 116 117 if impl.cert_file == None: 117 if impl.cert_file: 118 if not os.access(impl.cert_file, os.R_OK): 119 sys.exit("Cannot read certificate file: %s" % impl.cert_file) 120 else: 118 121 sys.exit("Must supply certificate file (probably in config)") 122 123 if impl.trusted_certs: 124 if not os.access(impl.trusted_certs, os.R_OK): 125 sys.exit("Cannot read trusted certificate file: %s" % \ 126 impl.trusted_certs) 119 127 120 128 # Create the SSL credentials … … 124 132 ctx = fedd_ssl_context(impl.cert_file, impl.trusted_certs, 125 133 password=impl.cert_pwd) 126 except SSL.SSLError, e:134 except Exception, e: 127 135 if str(e) != "bad decrypt" or impl.cert_pwd != None: 128 136 raise
Note: See TracChangeset
for help on using the changeset viewer.