From 7b9e11a15de8f370e716ecc8017547b4fa870e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Wed, 10 Oct 2018 12:02:04 +0800 Subject: [PATCH] =?UTF-8?q?perform=20class=20action=20=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC=E4=B8=BA=E5=A4=8D=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/mcclient/modules/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mcclient/modules/resource.go b/pkg/mcclient/modules/resource.go index ed7bc049cb..ca10923f0c 100644 --- a/pkg/mcclient/modules/resource.go +++ b/pkg/mcclient/modules/resource.go @@ -357,7 +357,7 @@ func (this *ResourceManager) PerformClassAction(session *mcclient.ClientSession, func (this *ResourceManager) PerformClassActionInContexts(session *mcclient.ClientSession, action string, params jsonutils.JSONObject, ctxs []ManagerContext) (jsonutils.JSONObject, error) { path := fmt.Sprintf("/%s/%s", this.ContextPath(ctxs), url.PathEscape(action)) - return this._post(session, path, params, this.Keyword) + return this._post(session, path, params, this.KeywordPlural) } func (this *ResourceManager) BatchPerformAction(session *mcclient.ClientSession, idlist []string, action string, params jsonutils.JSONObject) []SubmitResult {