repair the elasticsearch store day result to json

Change-Id: I052f6b540b22ebe9917e536efc411e81f81fb2b0
This commit is contained in:
jiasirui 2021-06-03 14:03:16 +08:00
parent 967924a363
commit 37d7caa0f1
2 changed files with 3 additions and 6 deletions

View File

@ -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',

View File

@ -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):