Ensuring that rotation only happens for certificates with endpoints to rotate. (#606)
This commit is contained in:
parent
a09faac9a7
commit
156b98f7f0
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user