mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
修复: webconsole参数缺失,导致yunionapi RPC调用失败
This commit is contained in:
@@ -76,7 +76,7 @@ func init() {
|
||||
})
|
||||
|
||||
R(&o.WebConsoleServerOptions{}, "webconsole-server", "Connect server remote graphic console", func(s *mcclient.ClientSession, args *o.WebConsoleServerOptions) error {
|
||||
ret, err := modules.WebConsole.DoServerConnect(s, args.ID)
|
||||
ret, err := modules.WebConsole.DoServerConnect(s, args.ID, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -60,6 +60,6 @@ func (m WebConsoleManager) DoSshConnect(s *mcclient.ClientSession, id string, pa
|
||||
return m.DoConnect(s, "ssh", id, "", nil)
|
||||
}
|
||||
|
||||
func (m WebConsoleManager) DoServerConnect(s *mcclient.ClientSession, id string) (jsonutils.JSONObject, error) {
|
||||
func (m WebConsoleManager) DoServerConnect(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error) {
|
||||
return m.DoConnect(s, "server", id, "", nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user