From 0386a2a6964f4e9792417dcdc10d418058fa0c93 Mon Sep 17 00:00:00 2001 From: Mikhail Galanin Date: Thu, 20 Sep 2018 09:39:07 +0100 Subject: [Minor] misprint --- lualib/lua_selectors.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index 8aab7e120..d93b11df6 100644 --- a/lualib/lua_selectors.lua +++ b/lualib/lua_selectors.lua @@ -769,7 +769,7 @@ exports.parse_selector = function(cfg, str) res.selector.args = selector_tbl[2] or E lua_util.debugm(M, cfg, 'processed selector %s, args: %s', - res.selector.name, res.selector.arg) + res.selector.name, res.selector.args) -- Now process processors pipe fun.each(function(proc_tbl) -- cgit v1.2.3 From ca61c951dcdac1093b3b507dd42c94b5363ff701 Mon Sep 17 00:00:00 2001 From: Mikhail Galanin Date: Thu, 20 Sep 2018 09:41:36 +0100 Subject: [Minor] logical error, get_variable() accepts either one or two arguments When second argument is nil it still considered as two arguments call, however 2nd one is expected to be string. --- lualib/lua_selectors.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index d93b11df6..983f28589 100644 --- a/lualib/lua_selectors.lua +++ b/lualib/lua_selectors.lua @@ -244,7 +244,8 @@ e.g. `get_user`]], -- the second argument is optional and defines the type (string by default) ['pool_var'] = { ['get_value'] = function(task, args) - return task:get_mempool():get_variable(args[1], args[2]),(args[2] or 'string') + local type = args[2] or 'string' + return task:get_mempool():get_variable(args[1], type),(type) end, ['description'] = [[Get specific pool var. The first argument must be variable name, the second argument is optional and defines the type (string by default)]], -- cgit v1.2.3