From 6debca92e51a8e2acb3daf5bf0cebf178bd0f7cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Fri, 18 Jan 2019 17:55:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=BA=E5=B0=91=E7=9A=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/climc/shell/cloudaccounts.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/climc/shell/cloudaccounts.go b/cmd/climc/shell/cloudaccounts.go index 49998c86d5..455da1a15e 100644 --- a/cmd/climc/shell/cloudaccounts.go +++ b/cmd/climc/shell/cloudaccounts.go @@ -44,6 +44,7 @@ func init() { Password string `help:"OpenStack|VMware password"` AuthURL string `help:"OpenStack auth_url"` Host string `help:"VMware host"` + Port string `help:"VMware host port" default:"443"` TenantID string `help:"Azure tenant_id"` ClientID string `help:"Azure tenant_id"` ClientSecret string `help:"Azure clinet_secret"` @@ -63,11 +64,11 @@ func init() { data := jsonutils.Marshal(args) requireParamsMap := map[string][]string{ - "VMware": {"username", "password", "host"}, + "VMware": {"username", "password", "host", "port"}, "Aliyun": {"access_key_id", "access_key_secret"}, "Azure": {"tenant_id", "client_id", "client_secret", "environment"}, "Qcloud": {"app_id", "secret_id", "secret_key"}, - "OpenStack": {"project_name", "username", "password"}, + "OpenStack": {"project_name", "username", "password", "auth_url"}, "Huawei": {"access_key_id", "access_key_secret", "environment"}, "Aws": {"access_key_id", "access_key_secret", "environment"}, }