letsencrypt: Remove special treatment for domain added from 'config'

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Sunil Mohan Adapa 2019-06-28 11:09:27 -07:00 committed by Joseph Nuthalapati
parent 39e250fb8e
commit 50c0858d53
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35
2 changed files with 1 additions and 15 deletions

View File

@ -168,14 +168,6 @@ def get_status():
"""Get the current settings."""
status = actions.superuser_run('letsencrypt', ['get-status'])
status = json.loads(status)
curr_dom = config.get_domainname()
current_domain = {
'name':
curr_dom,
'has_cert': (curr_dom in status['domains']
and status['domains'][curr_dom]['certificate_available']),
}
status['current_domain'] = current_domain
for domain_type, domains in names.domains.items():
# XXX: Remove when Let's Encrypt supports .onion addresses

View File

@ -50,13 +50,7 @@
<tbody>
{% for domain, domain_status in status.domains.items %}
<tr>
<td>
{% if domain == status.current_domain.name %}
<b>{{ domain }}</b>
{% else %}
{{ domain }}
{% endif %}
</td>
<td>{{ domain }}</td>
<td>
{% if domain_status.certificate_available and domain_status.validity == "valid" %}
<span class="label label-success">