From 0f5e925a1a5541ef39c437fbb46c82829a89a26a Mon Sep 17 00:00:00 2001 From: kevgliss Date: Fri, 2 Dec 2016 09:54:16 -0800 Subject: [PATCH] Ensuring that default-issuer is set (#553) --- lemur/defaults/schemas.py | 4 ++-- lemur/defaults/views.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lemur/defaults/schemas.py b/lemur/defaults/schemas.py index f7267301..c03d6d85 100644 --- a/lemur/defaults/schemas.py +++ b/lemur/defaults/schemas.py @@ -11,13 +11,13 @@ from lemur.authorities.schemas import AuthorityNestedOutputSchema class DefaultOutputSchema(LemurOutputSchema): - __envelope__ = False authority = fields.Nested(AuthorityNestedOutputSchema) country = fields.String() state = fields.String() location = fields.String() organization = fields.String() - organizationalUnit = fields.String() + organizational_unit = fields.String() + issuer_plugin = fields.String() default_output_schema = DefaultOutputSchema() diff --git a/lemur/defaults/views.py b/lemur/defaults/views.py index 982af49c..9d2c9dd4 100644 --- a/lemur/defaults/views.py +++ b/lemur/defaults/views.py @@ -65,8 +65,8 @@ class LemurDefaults(AuthenticatedResource): state=current_app.config.get('LEMUR_DEFAULT_STATE'), location=current_app.config.get('LEMUR_DEFAULT_LOCATION'), organization=current_app.config.get('LEMUR_DEFAULT_ORGANIZATION'), - organizationalUnit=current_app.config.get('LEMUR_DEFAULT_ORGANIZATIONAL_UNIT'), - issuerPlugin=current_app.config.get('LEMUR_DEFAULT_ISSUER_PLUGIN'), + organizational_unit=current_app.config.get('LEMUR_DEFAULT_ORGANIZATIONAL_UNIT'), + issuer_plugin=current_app.config.get('LEMUR_DEFAULT_ISSUER_PLUGIN'), authority=default_authority )