mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4522: check before we do dynamic casting
This commit is contained in:
parent
808183fdcc
commit
8099a6e200
|
|
@ -3296,10 +3296,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