in src/com/vmware/vim25/mox/VirtualMachineDeviceManager.java [329:354]
private List<String> getValidCdromOnHost() throws InvalidProperty, RuntimeFault, RemoteException
{
List<String> result = new ArrayList<String>();
EnvironmentBrowser envBrower = vm.getEnvironmentBrowser();
ConfigTarget configTarget;
try
{
configTarget = envBrower.queryConfigTarget(null);
}
catch (Exception ex)
{
throw new RuntimeException("Error in getting Cdrom devices from host.");
}
if(configTarget != null && configTarget.cdRom != null)
{
for(VirtualMachineCdromInfo cdromInfo : configTarget.cdRom)
{
result.add(cdromInfo.name);
}
}
return result;
}