mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Missing pending number args
This commit is contained in:
parent
027a0ed73c
commit
da6ae405dd
1 changed files with 2 additions and 0 deletions
|
@ -113,10 +113,12 @@ class MailDiagnoser(Diagnoser):
|
|||
else:
|
||||
if pending_emails > 300:
|
||||
yield dict(meta={"test": "mail_queue"},
|
||||
data={'nb_pending': pending_emails},
|
||||
status="WARNING",
|
||||
summary="diagnosis_mail_queue_too_many_pending_emails")
|
||||
else:
|
||||
yield dict(meta={"test": "mail_queue"},
|
||||
data={'nb_pending': pending_emails},
|
||||
status="INFO",
|
||||
summary="diagnosis_mail_queue_ok")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue