More stuff. Will prioritize this more next week

This commit is contained in:
Curtis Castrapel
2018-04-20 14:49:54 -07:00
parent fbce1ef7c7
commit 44e3b33aaa
22 changed files with 496 additions and 80 deletions

View File

@ -9,7 +9,6 @@ from flask_restful import Api
from lemur.common.schema import validate_schema
from lemur.authorities.service import get_by_name
from lemur.auth.service import AuthenticatedResource
from lemur.dns_providers.service import get_all_dns_providers
from lemur.defaults.schemas import default_output_schema
@ -61,7 +60,6 @@ class LemurDefaults(AuthenticatedResource):
"""
default_authority = get_by_name(current_app.config.get('LEMUR_DEFAULT_AUTHORITY'))
dns_providers = get_all_dns_providers()
return dict(
country=current_app.config.get('LEMUR_DEFAULT_COUNTRY'),
@ -71,7 +69,6 @@ class LemurDefaults(AuthenticatedResource):
organizational_unit=current_app.config.get('LEMUR_DEFAULT_ORGANIZATIONAL_UNIT'),
issuer_plugin=current_app.config.get('LEMUR_DEFAULT_ISSUER_PLUGIN'),
authority=default_authority,
dns_providers=dns_providers,
)