fix: climc panic 20221228 (#15644)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2022-12-29 11:28:46 +08:00
committed by GitHub
parent a72d05f2f9
commit 5ffa5791a9
+1 -4
View File
@@ -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 {