fix(region): avoid duplicate check when update account aksk (#24211)

This commit is contained in:
屈轩
2026-02-03 20:53:27 +08:00
committed by GitHub
parent 8b10d33682
commit ecc9ba0d86
+1 -1
View File
@@ -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)