From 90176d46fc2838d46a83a057ef643c156a70f7ce Mon Sep 17 00:00:00 2001 From: ioito Date: Wed, 19 Jun 2019 15:05:02 +0800 Subject: [PATCH] fix update zstack account password error --- pkg/util/zstack/provider/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/zstack/provider/provider.go b/pkg/util/zstack/provider/provider.go index d22f81aeee..5ea32ea869 100644 --- a/pkg/util/zstack/provider/provider.go +++ b/pkg/util/zstack/provider/provider.go @@ -67,7 +67,7 @@ func (self *SZStackProviderFactory) ValidateUpdateCloudaccountCredential(ctx con cloudaccount = username } password, _ := data.GetString("password") - if len(password) > 0 { + if len(password) == 0 { return nil, httperrors.NewMissingParameterError("password") } account := &cloudprovider.SCloudaccount{