repair the elasticsearch store day result to json
Change-Id: I052f6b540b22ebe9917e536efc411e81f81fb2b0
This commit is contained in:
parent
967924a363
commit
37d7caa0f1
@ -50,11 +50,6 @@ class APIRouter(venus.api.openstack.APIRouter):
|
||||
action='get_config',
|
||||
conditions={'method': ['GET']})
|
||||
|
||||
mapper.connect("get_custom_config", "/custom_config",
|
||||
controller=config_resource,
|
||||
action='set_config',
|
||||
conditions={'method': ['POST']})
|
||||
|
||||
mapper.connect("search_params", "/search/params",
|
||||
controller=search_resource,
|
||||
action='search_params',
|
||||
|
@ -25,7 +25,9 @@ class CustomConfigController(wsgi.Controller):
|
||||
|
||||
@wsgi.wrap_check_policy
|
||||
def get_config(self, req):
|
||||
return CONF.elasticsearch.es_index_days
|
||||
result = dict()
|
||||
result["log_save_days"] = CONF.elasticsearch.es_index_days
|
||||
return result
|
||||
|
||||
|
||||
def create_resource(ext_mgr):
|
||||
|
Loading…
Reference in New Issue
Block a user