mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(mcclient): options: webconsole: fix passing ssh port
This commit is contained in:
@@ -71,12 +71,18 @@ func (opt *WebConsoleBaremetalOptions) Params() (*jsonutils.JSONDict, error) {
|
||||
|
||||
type WebConsoleSshOptions struct {
|
||||
WebConsoleOptions
|
||||
IP string `help:"IP to connect"`
|
||||
IP string `help:"IP to connect" json:"-"`
|
||||
Port int `help:"Remote server port"`
|
||||
}
|
||||
|
||||
func (opt *WebConsoleSshOptions) Params() (*jsonutils.JSONDict, error) {
|
||||
return StructToParams(opt)
|
||||
data, err := StructToParams(opt)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
params := jsonutils.NewDict()
|
||||
params.Set("webconsole", data)
|
||||
return params, nil
|
||||
}
|
||||
|
||||
type WebConsoleServerOptions struct {
|
||||
|
||||
Reference in New Issue
Block a user