Skip to content

Commit a6669d0

Browse files
author
Oto Šťáva
committed
fixup! manager: use proper JSON values for socket communication
1 parent e8acc28 commit a6669d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

daemon/lua/sandbox.lua.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ function map(cmd, format)
758758
if (#cmd <= 0) then
759759
panic('map() command must be non-empty') end
760760
-- syntax check on input command to detect typos early
761-
local chunk, err = eval_cmd_compile(cmd, "RAW")
761+
local chunk, err = eval_cmd_compile(cmd, "LUA_TABLE")
762762
if not chunk then
763763
panic('failure when compiling map() command: %s', err)
764764
end
@@ -796,7 +796,7 @@ function map(cmd, format)
796796
log_info(ffi.C.LOG_GRP_SYSTEM, 'executing map() on %s: command %s', path_name, cmd)
797797
local ret
798798
if local_exec then
799-
ret = eval_cmd(cmd)
799+
ret = eval_cmd(cmd, "LUA_TABLE")
800800
else
801801
ret = map_send_recv(cmd, path)
802802
-- skip dead sockets (leftovers from dead instances)

0 commit comments

Comments
 (0)