mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): 避免删除云账号时遗留脏数据 (#17991)
This commit is contained in:
@@ -2217,6 +2217,8 @@ func (manager *SCloudaccountManager) AutoSyncCloudaccountStatusTask(ctx context.
|
||||
}()
|
||||
log.Debugf("syncAccountStatus %s %s", id, name)
|
||||
ctx = context.WithValue(ctx, "id", id)
|
||||
lockman.LockObject(ctx, account)
|
||||
defer lockman.ReleaseObject(ctx, account)
|
||||
err := account.syncAccountStatus(ctx, userCred)
|
||||
if err != nil {
|
||||
log.Errorf("unable to syncAccountStatus for cloudaccount %s: %s", account.Id, err.Error())
|
||||
|
||||
Reference in New Issue
Block a user