fix(region): obtain ProviderFactory correctly

The provider of the region is not necessarily the same as the resource
This commit is contained in:
rainzm
2020-12-30 16:29:08 +08:00
parent 7c3b6cd52a
commit b7b903ff67
+1 -1
View File
@@ -618,7 +618,7 @@ func (self *SStoragecache) SyncCloudImages(
result := compare.SyncResult{}
driver, err := cloudprovider.GetProviderFactory(region.Provider)
driver, err := self.GetProviderFactory()
if err != nil {
result.Error(errors.Wrapf(err, "GetProviderFactory(%s)", region.Provider))
return result