mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #10317 from rainzm/automated-cherry-pick-of-#10316-upstream-release-3.7
Automated cherry pick of #10316: fix(region): check whether guest is nil
This commit is contained in:
@@ -239,7 +239,7 @@ func (self *SInstanceSnapshot) getMoreDetails(userCred mcclient.TokenCredential,
|
||||
out.StorageType = snapshots[i].GetStorageType()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if guest != nil {
|
||||
out.Size = self.SizeMb
|
||||
disk, err := guest.GetSystemDisk()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user