mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Change threshold to warn earlier about soon-to-expire domain
This commit is contained in:
parent
b528336fd0
commit
415e805f74
1 changed files with 2 additions and 2 deletions
|
@ -170,9 +170,9 @@ class DNSRecordsDiagnoser(Diagnoser):
|
||||||
expire_in = expire_date - datetime.now()
|
expire_in = expire_date - datetime.now()
|
||||||
|
|
||||||
alert_type = "success"
|
alert_type = "success"
|
||||||
if expire_in <= timedelta(7):
|
if expire_in <= timedelta(15):
|
||||||
alert_type = "error"
|
alert_type = "error"
|
||||||
elif expire_in <= timedelta(30):
|
elif expire_in <= timedelta(45):
|
||||||
alert_type = "warning"
|
alert_type = "warning"
|
||||||
|
|
||||||
args = {
|
args = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue