mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-24 02:26:39 +08:00
Merge pull request #9743 from rainzm/automated-cherry-pick-of-#9742-upstream-release-3.7
Automated cherry pick of #9742: fix(region): obtain ProviderFactory correctly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user