mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user