Merge pull request #1301 from ioito/hotfix/qx-zstack-update-password

fix update zstack account password error
This commit is contained in:
yunion-ci-robot
2019-06-19 17:39:50 +08:00
committed by GitHub
+1 -1
View File
@@ -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{