From db3363a3569bc4c70fed98d2964963e1fdae3f18 Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Thu, 29 Dec 2022 11:35:36 +0800 Subject: [PATCH] fix: climc panic 20221228 (#15645) Co-authored-by: Qiu Jian --- cmd/climc/shell/shell.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/climc/shell/shell.go b/cmd/climc/shell/shell.go index c6597f4b00..008eb7ad29 100644 --- a/cmd/climc/shell/shell.go +++ b/cmd/climc/shell/shell.go @@ -16,8 +16,6 @@ package shell import ( "errors" - - "yunion.io/x/pkg/util/shellutils" ) type CMD struct { @@ -32,8 +30,7 @@ var CommandTable []CMD = make([]CMD, 0) var ErrEmtptyUpdate = errors.New("No valid update data") func R(options interface{}, command string, desc string, callback interface{}) { - shellutils.R(options, command, desc, callback) - // CommandTable = append(CommandTable, CMD{options, command, desc, callback}) + CommandTable = append(CommandTable, CMD{options, command, desc, callback}) } func InvalidUpdateError() error {