Changeset e65150a for fedd/federation


Ignore:
Timestamp:
Dec 10, 2010 3:27:05 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
3fa4328
Parents:
b67fd22
Message:

Make common ops use fewer options. Refactor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/authorizer.py

    rb67fd22 re65150a  
    209209        if self.me is not None and abac_pem_type(self.me) == 'both':
    210210            if self.save_dir:
    211                 self.key, self.me = abac_split_cert(self.me,
    212                         keyfile="%s/key.pem" % self.save_dir,
    213                         certfile = "%s/cert.pem" % self.save_dir)
     211                keyfile="%s/key.pem" % self.save_dir
     212                certfile = "%s/cert.pem" % self.save_dir
     213
     214                # Clear a spot for the new key and cert files.
     215                for fn in (keyfile, certfile):
     216                    if os.access(fn, os.F_OK):
     217                        os.unlink(fn)
     218
     219                self.key, self.me = abac_split_cert(self.me, keyfile, certfile)
    214220            else:
    215221                raise abac_authorizer.bad_cert_error("Combination " + \
Note: See TracChangeset for help on using the changeset viewer.