From bf01361d3d113dbf50492835b854670dcaa961ef Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Fri, 13 May 2022 13:38:25 +0800 Subject: [PATCH] feat(climc): SERVERIDS of devtool batch apply --- pkg/mcclient/options/devtool/script.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mcclient/options/devtool/script.go b/pkg/mcclient/options/devtool/script.go index 0dc1a215af..fa765cd881 100644 --- a/pkg/mcclient/options/devtool/script.go +++ b/pkg/mcclient/options/devtool/script.go @@ -41,7 +41,7 @@ func (so *ScriptOptions) Params() (jsonutils.JSONObject, error) { } type SscriptApplyOptions struct { - SERVERID string `help:"server id" json:"server_id"` + SERVERID []string `help:"server id" json:"server_id"` } type ScriptApplyOptions struct { @@ -54,7 +54,7 @@ func (so *ScriptApplyOptions) Params() (jsonutils.JSONObject, error) { } type SscriptBatchApplyOptions struct { - ServerIds []string `help:"server id list"` + SERVERIDS []string `help:"server id list" json:"server_ids"` } type ScriptBatchApplyOptions struct {