Remove destination_list from AcmeHttpIssuer

This commit is contained in:
Mathias Petermann 2020-10-13 09:01:01 +02:00
parent ef0fce2661
commit 6c1be02bfa
1 changed files with 0 additions and 9 deletions

View File

@ -811,8 +811,6 @@ class ACMEHttpIssuerPlugin(IssuerPlugin):
author = "Netflix" author = "Netflix"
author_url = "https://github.com/netflix/lemur.git" author_url = "https://github.com/netflix/lemur.git"
destination_list = []
options = [ options = [
{ {
"name": "acme_url", "name": "acme_url",
@ -852,13 +850,6 @@ class ACMEHttpIssuerPlugin(IssuerPlugin):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(ACMEHttpIssuerPlugin, self).__init__(*args, **kwargs) super(ACMEHttpIssuerPlugin, self).__init__(*args, **kwargs)
if len(self.destination_list) == 0:
destinations = destination_service.get_all()
for destination in destinations:
# we only want to use sftp destinations here
if destination.plugin_name == "sftp-destination":
self.destination_list.append(destination.label)
def create_certificate(self, csr, issuer_options): def create_certificate(self, csr, issuer_options):
""" """
Creates an ACME certificate using the HTTP-01 challenge. Creates an ACME certificate using the HTTP-01 challenge.