Complete all configurations in config api
Change-Id: Icbef06f63c60fa414a782bbe29c4eceb1911a4c1
This commit is contained in:
parent
ea0d95bf7f
commit
cfa0ea6ac9
@ -1,4 +1,5 @@
|
||||
{
|
||||
"log_save_days": "30"
|
||||
|
||||
"log_save_days": "30",
|
||||
"anomaly_record_save_days": "30",
|
||||
"log_max_gb": "100"
|
||||
}
|
||||
|
@ -28,7 +28,10 @@ class CustomConfigController(wsgi.Controller):
|
||||
@wsgi.wrap_check_policy
|
||||
def get_config(self, req):
|
||||
result = dict()
|
||||
result["log_save_days"] = self.config_api.get_config("log_save_days")
|
||||
configs = ["log_save_days", "anomaly_record_save_days", "log_max_gb"]
|
||||
for config in configs:
|
||||
result[config] = self.config_api.get_config(config)
|
||||
|
||||
return result
|
||||
|
||||
@wsgi.wrap_check_policy
|
||||
|
Loading…
Reference in New Issue
Block a user