Merge pull request #11508 from ioito/automated-cherry-pick-of-#11507-upstream-release-3.7

Automated cherry pick of #11507: fix(region): avoid panic when sync snapshot project
This commit is contained in:
Zexi Li
2021-06-28 19:36:44 +08:00
committed by GitHub
+1 -1
View File
@@ -891,7 +891,7 @@ func (self *SSnapshot) SyncWithCloudSnapshot(ctx context.Context, userCred mccli
if disk != nil {
self.SyncCloudProjectId(userCred, disk.GetOwnerId())
} else {
SyncCloudProject(userCred, self, syncOwnerId, ext, disk.GetCloudprovider().Id)
SyncCloudProject(userCred, self, syncOwnerId, ext, self.GetCloudprovider().Id)
}
return nil