mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4522: check before we do dynamic casting
This commit is contained in:
parent
bae2666549
commit
e929b4ceb2
|
|
@ -3238,10 +3238,10 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
|||
int scsiUnitNumber = 0;
|
||||
|
||||
for(DiskTO vol: sortedDisks) {
|
||||
VolumeObjectTO volumeTO = (VolumeObjectTO)vol.getData();
|
||||
|
||||
if (vol.getType() == Volume.Type.ISO)
|
||||
continue;
|
||||
|
||||
VolumeObjectTO volumeTO = (VolumeObjectTO)vol.getData();
|
||||
|
||||
controllerKey = getDiskController(vol, vmSpec, ideControllerKey, scsiControllerKey);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue