CLOUDSTACK-4522: check before we do dynamic casting

(cherry picked from commit 8099a6e200)

Signed-off-by: animesh <animesh@apache.org>
This commit is contained in:
Kelven Yang 2013-08-27 11:38:31 -07:00 committed by animesh
parent a48e6685a1
commit 4b4315ff71
1 changed files with 2 additions and 2 deletions

View File

@ -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);