Merge pull request #6085 from yousong/bugfix/yousong-proxysetting

region: cloudaccounts: re-validate only when proxysetting changed
This commit is contained in:
Zexi Li
2020-04-27 20:59:09 +08:00
committed by GitHub
+1 -1
View File
@@ -304,7 +304,7 @@ func (self *SCloudaccount) ValidateUpdateData(
return input, errors.Wrap(err, "ValidateProxySettingResourceInput")
}
if proxySetting != nil {
if proxySetting != nil && proxySetting.Id != self.ProxySettingId {
// updated proxy setting, so do the check
proxyFunc := proxySetting.HttpTransportProxyFunc()
secret, _ := self.getPassword()