Merge pull request #17517 from ioito/hotfix/qx-clean-skip-sync-resource

fix(region): clean skip sync resources
This commit is contained in:
Zexi Li
2023-07-13 21:43:28 +08:00
committed by GitHub
+6
View File
@@ -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 {