When searching through devices looking for objects of type 'VirtualSCSIController', the property 'device[]' (an array) is only initialized IF the extended controller type is VirtualLsiLogicController
If the extended type of VirtualScsiController is any one of 'VirtualBusLogicController', 'VirtualLsiLogicSASController', or 'ParaVirtualController' the array remains uninitialized.
sample code:
<code>
my $devices = $vm->config->hardware->device;
foreach my $device (@$devices) {
if ( $device->isa('VirtualSCSIController') && ($device->busNumber == $vctrl_num) )
{
if ( $device->device[0] )
{
return $device;
}
}
}
print "Returning UNDEF from find_scsi_controller_device\n";
return undef;
}
</code>
Any ideas? Is this a known bug of some sorts?