mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
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