Merge branch 'master' into get_by_attributes
This commit is contained in:
@ -360,6 +360,7 @@ def update_destinations(target, value, initiator):
|
||||
status = SUCCESS_METRIC_STATUS
|
||||
except Exception as e:
|
||||
sentry.captureException()
|
||||
raise
|
||||
|
||||
metrics.send('destination_upload', 'counter', 1,
|
||||
metric_tags={'status': status, 'certificate': target.name, 'destination': value.label})
|
||||
|
@ -106,7 +106,7 @@ def get_all_pending_cleaning(source):
|
||||
:return:
|
||||
"""
|
||||
return Certificate.query.filter(Certificate.sources.any(id=source.id)) \
|
||||
.filter(not_(Certificate.endpoints.any())).all()
|
||||
.filter(not_(Certificate.endpoints.any())).filter(Certificate.expired).all()
|
||||
|
||||
|
||||
def get_all_pending_reissue():
|
||||
|
Reference in New Issue
Block a user