fix(region): clean skip sync resources

This commit is contained in:
ioito
2023-07-13 20:14:59 +08:00
parent e78138dc85
commit 543959f9e2
+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 {