From 7d3af78f8bdd89f8a1865d09b5429c8674e2b569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Wed, 5 Dec 2018 20:42:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20webconsole=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=BC=BA=E5=A4=B1=EF=BC=8C=E5=AF=BC=E8=87=B4yunionapi?= =?UTF-8?q?=20RPC=E8=B0=83=E7=94=A8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/climc/shell/webconsole.go | 2 +- pkg/mcclient/modules/mod_webconsole.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/climc/shell/webconsole.go b/cmd/climc/shell/webconsole.go index e1baed7860..41696c5301 100644 --- a/cmd/climc/shell/webconsole.go +++ b/cmd/climc/shell/webconsole.go @@ -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 } diff --git a/pkg/mcclient/modules/mod_webconsole.go b/pkg/mcclient/modules/mod_webconsole.go index db7373562c..148be7fe80 100644 --- a/pkg/mcclient/modules/mod_webconsole.go +++ b/pkg/mcclient/modules/mod_webconsole.go @@ -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) }