diff --git a/lemur/plugins/lemur_acme/plugin.py b/lemur/plugins/lemur_acme/plugin.py index 1dab1362..caa4ca45 100644 --- a/lemur/plugins/lemur_acme/plugin.py +++ b/lemur/plugins/lemur_acme/plugin.py @@ -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) diff --git a/lemur/schemas.py b/lemur/schemas.py index 4242c399..ffdfe66f 100644 --- a/lemur/schemas.py +++ b/lemur/schemas.py @@ -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,