diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-29 08:00:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-29 08:00:22 +0000 |
commit | 548bbb0c704f24be435243e1c15e1c210368021d (patch) | |
tree | 4eabbefe3a3a249d3e8e35f22f7f26f916dfa8b2 /lualib | |
parent | 5e772d008f36c37f80d7dc881e341270746d4878 (diff) | |
download | rspamd-548bbb0c704f24be435243e1c15e1c210368021d.tar.gz rspamd-548bbb0c704f24be435243e1c15e1c210368021d.zip |
[Fix] Do not override groups when converting metrics
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/rspamd_config_transform.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lualib/rspamd_config_transform.lua b/lualib/rspamd_config_transform.lua index c7bf56b90..a46ede336 100644 --- a/lualib/rspamd_config_transform.lua +++ b/lualib/rspamd_config_transform.lua @@ -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 |