mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): avoid duplicate check when update account aksk (#24211)
This commit is contained in:
@@ -785,7 +785,7 @@ func (acnt *SCloudaccount) PerformUpdateCredential(
|
||||
}
|
||||
|
||||
changed := false
|
||||
if len(account.Secret) > 0 || len(account.Account) > 0 {
|
||||
if acnt.Account != account.Account && (len(account.Secret) > 0 || len(account.Account) > 0) {
|
||||
// check duplication
|
||||
q := acnt.GetModelManager().Query()
|
||||
q = q.Equals("account", account.Account)
|
||||
|
||||
Reference in New Issue
Block a user