diff options
author | Rob Austein <sra@hactrn.net> | 2010-05-19 02:12:49 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-05-19 02:12:49 +0000 |
commit | 8efd2f09ba9831405cceaff2a3693a20e923af0c (patch) | |
tree | 9a93bd192de84f726522107b953dc03ed18f640c | |
parent | ee2445cd78a51e70c1a4f8dd3e3eb04a7a53d244 (diff) |
Cleanup
svn path=/rpkid/rpki/left_right.py; revision=3252
-rw-r--r-- | rpkid/rpki/left_right.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/rpkid/rpki/left_right.py b/rpkid/rpki/left_right.py index c1580f1d..99a8e771 100644 --- a/rpkid/rpki/left_right.py +++ b/rpkid/rpki/left_right.py @@ -385,13 +385,12 @@ class self_elt(data_elt): if ca_detail.state == "active": old_resources = child_cert.cert.get_3779resources() new_resources = irdb_resources.intersection(old_resources) - withdraw = False if new_resources.empty(): rpki.log.debug("Resources shrank to the null set, revoking and withdrawing child certificate SKI %s" % child_cert.cert.gSKI()) child_cert.revoke(publisher = publisher) ca_detail.generate_crl(publisher = publisher) - withdraw = True + ca_detail.generate_manifest(publisher = publisher) elif old_resources != new_resources or (old_resources.valid_until < rsn and irdb_resources.valid_until > now): rpki.log.debug("Need to reissue child certificate SKI %s" % child_cert.cert.gSKI()) @@ -404,9 +403,6 @@ class self_elt(data_elt): rpki.log.debug("Child certificate SKI %s has expired: cert.valid_until %s, irdb.valid_until %s" % (child_cert.cert.gSKI(), old_resources.valid_until, irdb_resources.valid_until)) child_cert.sql_delete() - withdraw = True - - if withdraw: publisher.withdraw(cls = rpki.publication.certificate_elt, uri = child_cert.uri(ca), obj = child_cert.cert, repository = ca.parent().repository()) ca_detail.generate_manifest(publisher = publisher) |