Skip to content

Commit

Permalink
modify logic for init cli cmd
Browse files Browse the repository at this point in the history
Signed-off-by: revolyssup <ashishjaitiwari15112000@gmail.com>
  • Loading branch information
Revolyssup committed Jul 14, 2023
1 parent 00770c8 commit 26e6eda
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apisix/cli/ops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,14 @@ end
local action = {
help = help,
version = version,
init = init,
init = function (env)
local results = {init(env)}
local ok = results[1]
if not ok then
cleanup()
util.die(table_unpack(results,2))
end
end,
init_etcd = etcd.init,
start = start,
stop = stop,
Expand Down

0 comments on commit 26e6eda

Please sign in to comment.