Automatic merge from release/2.3.0 -> release/2.4.0

* commit '9f8cb5617c3ca99f24d4759479c6826982fb0073':
  修复: webconsole参数缺失,导致yunionapi RPC调用失败
This commit is contained in:
邱剑
2018-12-05 20:43:42 +08:00
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)
}