Browse Source

[Fix] Do not override groups when converting metrics

tags/1.7.0
Vsevolod Stakhov 6 years ago
parent
commit
548bbb0c70
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      lualib/rspamd_config_transform.lua

+ 6
- 4
lualib/rspamd_config_transform.lua View File

@@ -209,11 +209,13 @@ local function convert_metric(cfg, metric)
group_transform(cfg, k, v)
end
else
cfg.group = {
ungrouped = {
symbols = {}
if not cfg.group then
cfg.group = {
ungrouped = {
symbols = {}
}
}
}
end
end

if metric.symbol then

Loading…
Cancel
Save