This commit is contained in:
Curtis Castrapel 2018-08-13 14:25:54 -07:00
parent bb026b8b59
commit 5829794d82
2 changed files with 2 additions and 2 deletions

View File

@ -468,7 +468,7 @@ class ACMEIssuerPlugin(IssuerPlugin):
create_immediately = issuer_options.get('create_immediately', False)
acme_client, registration = self.acme.setup_acme_client(authority)
dns_provider = issuer_options.get('dns_provider', {})
# TODO: IF NOT DNS PROVIDER, AUTODISCOVER
if dns_provider:
dns_provider_options = dns_provider.options
credentials = json.loads(dns_provider.credentials)

View File

@ -78,7 +78,7 @@ def fetch_objects(model, data, many=False):
items = model.query.filter(getattr(model, attr).in_(values)).all()
found = [getattr(i, attr) for i in items]
diff = set(values).symmetric_difference(set(found))
AssociatedDnsProviderSchema
if diff:
raise ValidationError('Unable to locate {model} with {attr} {diff}'.format(
model=model,