mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #17517 from ioito/hotfix/qx-clean-skip-sync-resource
fix(region): clean skip sync resources
This commit is contained in:
@@ -309,6 +309,12 @@ func (self *SCloudaccount) ValidateUpdateData(
|
||||
skipSyncResources.Remove(res)
|
||||
}
|
||||
input.SkipSyncResources = skipSyncResources
|
||||
if len(*skipSyncResources) == 0 {
|
||||
db.Update(self, func() error {
|
||||
self.SkipSyncResources = nil
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
factory, err := self.GetProviderFactory()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user