mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix: climc panic 20221228 (#15644)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user