mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix bad validity check..
This commit is contained in:
parent
418c9b2736
commit
d6d7abd959
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ def certificate_renew(auth, domain_list, force=False, no_checks=False, email=Fal
|
|||
status = _get_status(domain)
|
||||
|
||||
# Does it expire soon?
|
||||
if not force or status["validity"] <= VALIDITY_LIMIT:
|
||||
if status["validity"] > VALIDITY_LIMIT and not force:
|
||||
raise MoulinetteError(errno.EINVAL, m18n.n(
|
||||
'certmanager_attempt_to_renew_valid_cert', domain=domain))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue