Complete all configurations in config api

Change-Id: Icbef06f63c60fa414a782bbe29c4eceb1911a4c1
This commit is contained in:
inspurericzhang 2024-01-17 09:10:47 +00:00
parent ea0d95bf7f
commit cfa0ea6ac9
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,5 @@
{
"log_save_days": "30"
"log_save_days": "30",
"anomaly_record_save_days": "30",
"log_max_gb": "100"
}

View File

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