From df821d0fcb0694e31966aed6a77db1ebeac55321 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov <gorcunov@gmail.com> Date: Mon, 7 Oct 2019 20:04:43 +0300 Subject: [PATCH] box/console: Fix missing variable declaration During rework of the console lua mode series the declaration of variable has been lost and this cause test case for remote unix console connection to fail. Fixes issue from c358398c7dc3777712c0dbec2c1b21e69bce2a4a Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> --- src/box/lua/console.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/box/lua/console.lua b/src/box/lua/console.lua index 3bf6fe9f4a..6a01336480 100644 --- a/src/box/lua/console.lua +++ b/src/box/lua/console.lua @@ -198,11 +198,10 @@ end -- Map output format descriptor into a "\set" command. local function output_to_cmd_string(desc) if desc["opts"] then - string.format("\\set output %s,%s", desc["fmt"], desc["opts"]) + return string.format("\\set output %s,%s", desc["fmt"], desc["opts"]) else - string.format("\\set output %s", desc["fmt"]) + return string.format("\\set output %s", desc["fmt"]) end - return cmd end local function format(status, ...) -- GitLab