mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] remove useless ()
This commit is contained in:
parent
5615e3f4fe
commit
8ca5d59a96
1 changed files with 4 additions and 4 deletions
|
@ -249,7 +249,7 @@ def certificate_renew(auth, domainList, force=False, no_checks=False, email=Fals
|
||||||
|
|
||||||
# If no domains given, consider all yunohost domains with Let's Encrypt
|
# If no domains given, consider all yunohost domains with Let's Encrypt
|
||||||
# certificates
|
# certificates
|
||||||
if (domainList == []):
|
if domainList == []:
|
||||||
for domain in yunohost.domain.domain_list(auth)['domains']:
|
for domain in yunohost.domain.domain_list(auth)['domains']:
|
||||||
|
|
||||||
# Does it has a Let's Encrypt cert ?
|
# Does it has a Let's Encrypt cert ?
|
||||||
|
@ -258,10 +258,10 @@ def certificate_renew(auth, domainList, force=False, no_checks=False, email=Fals
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Does it expires soon ?
|
# Does it expires soon ?
|
||||||
if (force) or (status["validity"] <= validity_limit):
|
if force or status["validity"] <= validity_limit:
|
||||||
domainList.append(domain)
|
domainList.append(domain)
|
||||||
|
|
||||||
if (len(domainList) == 0):
|
if len(domainList) == 0:
|
||||||
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
|
||||||
|
@ -275,7 +275,7 @@ def certificate_renew(auth, domainList, force=False, no_checks=False, email=Fals
|
||||||
status = _get_status(domain)
|
status = _get_status(domain)
|
||||||
|
|
||||||
# Does it expires soon ?
|
# Does it expires soon ?
|
||||||
if not (force or status["validity"] <= validity_limit):
|
if not force or status["validity"] <= validity_limit:
|
||||||
raise MoulinetteError(errno.EINVAL, m18n.n('certmanager_attempt_to_renew_valid_cert', domain=domain))
|
raise MoulinetteError(errno.EINVAL, m18n.n('certmanager_attempt_to_renew_valid_cert', domain=domain))
|
||||||
|
|
||||||
# Does it has a Let's Encrypt cert ?
|
# Does it has a Let's Encrypt cert ?
|
||||||
|
|
Loading…
Add table
Reference in a new issue