Setup reroutes when complete, fix gunicorn check

This commit is contained in:
Sam Chow 2018-08-31 13:16:20 -04:00
parent e711c1efe6
commit dbce986af6
5 changed files with 10 additions and 14 deletions

View file

@ -35,15 +35,11 @@ class SuperUserConfig(ApiResource):
'description': 'Updates the YAML config file',
'required': [
'config',
'hostname'
],
'properties': {
'config': {
'type': 'object'
},
'hostname': {
'type': 'string'
},
'password': {
'type': 'string'
},
@ -66,10 +62,9 @@ class SuperUserConfig(ApiResource):
# Note: This method is called to set the database configuration before super users exists,
# so we also allow it to be called if there is no valid registry configuration setup.
config_object = request.get_json()['config']
hostname = request.get_json()['hostname']
# Add any enterprise defaults missing from the config.
add_enterprise_config_defaults(config_object, app.config['SECRET_KEY'], hostname)
add_enterprise_config_defaults(config_object, app.config['SECRET_KEY'])
# Write the configuration changes to the config override file.
config_provider.save_config(config_object)