Ensuring that rotation only happens for certificates with endpoints to rotate. (#606)
This commit is contained in:
@ -93,6 +93,7 @@ def get_all_pending_rotation():
|
||||
end = now + timedelta(days=interval)
|
||||
|
||||
return Certificate.query.filter(Certificate.rotation == True)\
|
||||
.filter(Certificate.endpoints.any())\
|
||||
.filter(Certificate.not_after <= end.format('YYYY-MM-DD')).all() # noqa
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user