- Timestamp:
- Dec 15, 2010 10:37:21 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 990b746
- Parents:
- c092b7f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_to_abac.py
rc092b7f rdcffcc6 132 132 else: sys.exit('Cannot read %s (key file)' % opts.key) 133 133 134 if opts.make_authorizer: 135 creds_dir = mkdtemp() 136 delete_creds = True 137 else: 138 creds_dir = opts.dir 139 delete_creds = False 140 141 if opts.cert: 142 if os.access(opts.cert, os.R_OK): 143 if not key: 144 if abac_pem_type(opts.cert) == 'both': 145 key, cert = abac_split_cert(opts.cert) 146 delete_certs = True 147 else: 148 cert = opts.cert 149 else: 150 sys.exit('Cannot read %s (certificate file)' % opts.cert) 151 152 if any([ x is None for x in (cert, opts.dir, key)]): 153 print >>sys.stderr, "Need output dir, certificate and key to make creds" 154 print >>sys.stderr, "Reverting to debug mode" 155 debug = True 156 else: 157 debug = opts.debug 158 134 159 if opts.dir: 135 160 if opts.make_dir: … … 145 170 sys.exit('%s is not writable' % opts.dir) 146 171 147 if opts.make_authorizer:148 creds_dir = mkdtemp()149 delete_creds = True150 else:151 creds_dir = opts.dir152 delete_creds = False153 154 if opts.cert:155 if os.access(opts.cert, os.R_OK):156 if not key:157 if abac_pem_type(opts.cert) == 'both':158 key, cert = abac_split_cert(opts.cert)159 delete_certs = True160 else:161 cert = opts.cert162 else:163 sys.exit('Cannot read %s (certificate file)' % opts.cert)164 165 if any([ x is None for x in (cert, opts.dir, key)]):166 print >>sys.stderr, "Need output dir, certificate and key to make creds"167 print >>sys.stderr, "Reverting to debug mode"168 debug = True169 else:170 debug = opts.debug171 172 172 173 try:
Note: See TracChangeset
for help on using the changeset viewer.