Skip to content

Commit e929b4c

Browse files
committed
CLOUDSTACK-4522: check before we do dynamic casting
1 parent bae2666 commit e929b4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3238,10 +3238,10 @@ private void postDiskConfigBeforeStart(VirtualMachineMO vmMo, VirtualMachineTO v
32383238
int scsiUnitNumber = 0;
32393239

32403240
for(DiskTO vol: sortedDisks) {
3241-
VolumeObjectTO volumeTO = (VolumeObjectTO)vol.getData();
3242-
32433241
if (vol.getType() == Volume.Type.ISO)
32443242
continue;
3243+
3244+
VolumeObjectTO volumeTO = (VolumeObjectTO)vol.getData();
32453245

32463246
controllerKey = getDiskController(vol, vmSpec, ideControllerKey, scsiControllerKey);
32473247

0 commit comments

Comments
 (0)