Fix acme_status / ACME_eligible

This commit is contained in:
Alexandre Aubin 2022-10-05 15:35:51 +02:00
parent 96233ea600
commit 1a543fe416
2 changed files with 5 additions and 5 deletions

View file

@ -90,13 +90,13 @@ i18n = "domain_config"
[cert.cert.acme_eligible_explain]
type = "alert"
style = "warning"
visible = "acme_eligible == false"
visible = "acme_eligible == false || acme_elligible == null"
[cert.cert.cert_no_checks]
ask = "Ignore diagnosis checks"
type = "boolean"
default = false
visible = "acme_eligible == false"
visible = "acme_eligible == false || acme_elligible == null"
[cert.cert.cert_install]
type = "button"

View file

@ -98,12 +98,12 @@ def certificate_status(domains, full=False):
if full:
try:
_check_domain_is_ready_for_ACME(domain)
status["acme_status"] = 'eligible'
status["ACME_eligible"] = True
except Exception as e:
if e.key == 'certmanager_domain_not_diagnosed_yet':
status["acme_status"] = 'unknown'
status["ACME_eligible"] = None # = unknown status
else:
status["acme_status"] = 'ineligible'
status["ACME_eligible"] = False
del status["domain"]