mirror of https://github.com/apache/cloudstack.git
Merge remote-tracking branch 'origin/4.13'
This commit is contained in:
commit
3950de116d
|
|
@ -132,7 +132,7 @@ public class KVMGuru extends HypervisorGuruBase implements HypervisorGuru {
|
|||
guestOsMapping = _guestOsHypervisorDao.findByOsIdAndHypervisor(guestOS.getId(), getHypervisorType().toString(), host.getHypervisorVersion());
|
||||
}
|
||||
if (guestOsMapping == null || host == null) {
|
||||
to.setPlatformEmulator("Other");
|
||||
to.setPlatformEmulator(guestOS.getDisplayName() == null ? "Other" : guestOS.getDisplayName());
|
||||
} else {
|
||||
to.setPlatformEmulator(guestOsMapping.getGuestOsName());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -928,13 +928,7 @@ public class StatsCollector extends ManagerBase implements ComponentMethodInterc
|
|||
List<VolumeVO> volumes = _volsDao.findByPoolId(pool.getId(), null);
|
||||
List<String> volumeLocators = new ArrayList<String>();
|
||||
for (VolumeVO volume : volumes) {
|
||||
if (volume.getFormat() == ImageFormat.QCOW2) {
|
||||
if (pool.isManaged()) {
|
||||
volumeLocators.add(volume.getPath());
|
||||
} else {
|
||||
volumeLocators.add(volume.getUuid());
|
||||
}
|
||||
} else if (volume.getFormat() == ImageFormat.VHD) {
|
||||
if (volume.getFormat() == ImageFormat.QCOW2 || volume.getFormat() == ImageFormat.VHD) {
|
||||
volumeLocators.add(volume.getPath());
|
||||
} else if (volume.getFormat() == ImageFormat.OVA) {
|
||||
volumeLocators.add(volume.getChainInfo());
|
||||
|
|
|
|||
Loading…
Reference in New Issue