Skip to content
Snippets Groups Projects
Commit 75f82af8 authored by bigbes's avatar bigbes
Browse files

Fix for arg handling in tarantoolctl

parent 544d30ff
No related branches found
No related tags found
No related merge requests found
......@@ -357,8 +357,6 @@ end
local orig_cfg = box.cfg
local function wrapper_cfg(cfg)
shift_argv(arg, 0, 2)
for i, v in pairs(default_cfg) do
if cfg[i] == nil then
cfg[i] = v
......@@ -411,6 +409,7 @@ local function start()
script_name = instance_path,
__defer_update = true
}
shift_argv(arg, 0, 2)
local success, data = pcall(dofile, instance_path)
-- if load fails - show last 10 lines of the log file
if not success then
......
#!/usr/bin/env tarantool
-- get instance name from filename (autobootstrap1.lua => autobootstrap1)
local INSTANCE_ID = string.match(arg[2], "%d")
local INSTANCE_ID = string.match(arg[0], "%d")
local USER = 'cluster'
local PASSWORD = 'somepassword'
local SOCKET_DIR = require('fio').cwd()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment