Skip to content

Commit 08d2633

Browse files
committed
fix root volume attach
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent b139d37 commit 08d2633

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • plugins/integrations/veeam-control-service/src/main/java/org/apache/cloudstack/veeam/adapter

plugins/integrations/veeam-control-service/src/main/java/org/apache/cloudstack/veeam/adapter/ServerAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,8 +1258,7 @@ public DiskAttachment attachInstanceDisk(final String vmUuid, final DiskAttachme
12581258
}
12591259
}
12601260
Long deviceId = null;
1261-
List<VolumeVO> volumes = volumeDao.findUsableVolumesForInstance(vmVo.getId());
1262-
if (CollectionUtils.isEmpty(volumes)) {
1261+
if (Volume.Type.ROOT.equals(volumeVO.getVolumeType())) {
12631262
deviceId = 0L;
12641263
}
12651264
Volume volume = volumeApiService.attachVolumeToVM(vmVo.getId(), volumeVO.getId(), deviceId, false);

0 commit comments

Comments
 (0)