mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Don't send email if no certificate need to be renewed (#540)
This commit is contained in:
parent
8e574d2b5f
commit
d420bb240f
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ def certificate_renew(auth, domain_list, force=False, no_checks=False, email=Fal
|
||||||
|
|
||||||
domain_list.append(domain)
|
domain_list.append(domain)
|
||||||
|
|
||||||
if len(domain_list) == 0:
|
if len(domain_list) == 0 and not email:
|
||||||
logger.info("No certificate needs to be renewed.")
|
logger.info("No certificate needs to be renewed.")
|
||||||
|
|
||||||
# Else, validate the domain list given
|
# Else, validate the domain list given
|
||||||
|
|
Loading…
Add table
Reference in a new issue