We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbe2bf1 commit 649ed45Copy full SHA for 649ed45
1 file changed
server/src/main/java/com/cloud/server/StatsCollector.java
@@ -928,13 +928,7 @@ protected void runInContext() {
928
List<VolumeVO> volumes = _volsDao.findByPoolId(pool.getId(), null);
929
List<String> volumeLocators = new ArrayList<String>();
930
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) {
+ if (volume.getFormat() == ImageFormat.QCOW2 || volume.getFormat() == ImageFormat.VHD) {
938
volumeLocators.add(volume.getPath());
939
} else if (volume.getFormat() == ImageFormat.OVA) {
940
volumeLocators.add(volume.getChainInfo());
0 commit comments