add profile
This commit is contained in:
@@ -10,6 +10,7 @@ DEFAULT_CONFIG: dict[str, object] = {
|
||||
"graylog_mcp_url": "",
|
||||
"graylog_stream": "",
|
||||
"graylog_streams": [],
|
||||
"graylog_stream_profiles": [],
|
||||
"graylog_query": "*",
|
||||
"graylog_field_mapping": "",
|
||||
"llm_enabled": False,
|
||||
@@ -52,6 +53,8 @@ class ConfigStore:
|
||||
{"id": str(item.get("id", "")), "title": str(item.get("title", "")), "enabled": bool(item.get("enabled"))}
|
||||
for item in value if isinstance(item, dict) and item.get("id")
|
||||
]
|
||||
elif key == "graylog_stream_profiles" and isinstance(value, list):
|
||||
current[key] = [item for item in value if isinstance(item, dict) and item.get("stream_id")]
|
||||
elif isinstance(value, str):
|
||||
current[key] = value.strip()
|
||||
self.path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user