Skip to content

Commit 3950de1

Browse files
committed
Merge remote-tracking branch 'origin/4.13'
2 parents 4ab6b42 + 37d2b85 commit 3950de1

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

server/src/main/java/com/cloud/hypervisor/KVMGuru.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public VirtualMachineTO implement(VirtualMachineProfile vm) {
132132
guestOsMapping = _guestOsHypervisorDao.findByOsIdAndHypervisor(guestOS.getId(), getHypervisorType().toString(), host.getHypervisorVersion());
133133
}
134134
if (guestOsMapping == null || host == null) {
135-
to.setPlatformEmulator("Other");
135+
to.setPlatformEmulator(guestOS.getDisplayName() == null ? "Other" : guestOS.getDisplayName());
136136
} else {
137137
to.setPlatformEmulator(guestOsMapping.getGuestOsName());
138138
}

server/src/main/java/com/cloud/server/StatsCollector.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -928,13 +928,7 @@ protected void runInContext() {
928928
List<VolumeVO> volumes = _volsDao.findByPoolId(pool.getId(), null);
929929
List<String> volumeLocators = new ArrayList<String>();
930930
for (VolumeVO volume : volumes) {
931-
if (volume.getFormat() == ImageFormat.QCOW2) {
932-
if (pool.isManaged()) {
933-
volumeLocators.add(volume.getPath());
934-
} else {
935-
volumeLocators.add(volume.getUuid());
936-
}
937-
} else if (volume.getFormat() == ImageFormat.VHD) {
931+
if (volume.getFormat() == ImageFormat.QCOW2 || volume.getFormat() == ImageFormat.VHD) {
938932
volumeLocators.add(volume.getPath());
939933
} else if (volume.getFormat() == ImageFormat.OVA) {
940934
volumeLocators.add(volume.getChainInfo());

0 commit comments

Comments
 (0)