diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-29 16:58:54 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-29 16:58:54 +0100 |
commit | e8366d156e09eba81ae38f57c41c74ec203c27bc (patch) | |
tree | 4e288c722057cf3948eeb659b4352b40b4eb9dbb /lualib/rspamadm | |
parent | 099cb8fb099054d2711c61ebfac1be05f9519748 (diff) | |
download | rspamd-e8366d156e09eba81ae38f57c41c74ec203c27bc.tar.gz rspamd-e8366d156e09eba81ae38f57c41c74ec203c27bc.zip |
[Minor] Rework config load routines
Diffstat (limited to 'lualib/rspamadm')
-rw-r--r-- | lualib/rspamadm/corpus_test.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/rspamadm/corpus_test.lua b/lualib/rspamadm/corpus_test.lua index 59b02f649..60aa2d7a9 100644 --- a/lualib/rspamadm/corpus_test.lua +++ b/lualib/rspamadm/corpus_test.lua @@ -74,16 +74,16 @@ local function encoded_json_to_log(result) -- Returns table containing score, action, list of symbols local filtered_result = {} - local parser = ucl.parser() + local ucl_parser = ucl.parser() - local is_good, err = parser:parse_string(result) + local is_good, err = ucl_parser:parse_string(result) if not is_good then rspamd_logger.errx("Parser error: %1", err) return nil end - result = parser:get_object() + result = ucl_parser:get_object() filtered_result.score = result.score if not result.action then |