修复: webconsole参数缺失,导致yunionapi RPC调用失败

This commit is contained in:
屈轩
2018-12-05 20:42:37 +08:00
parent 1e0ad11e2a
commit 7d3af78f8b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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)
}