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:
Zexi Li
2021-03-04 19:39:00 +08:00
committed by GitHub
+1 -1
View File
@@ -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 {