mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 10620: allow ISO attachment failure to propogate up
This commit is contained in:
parent
01a04935aa
commit
d0de1a5b94
@ -821,6 +821,9 @@ public class TemplateManagerImpl implements TemplateManager, Manager, TemplateSe
|
||||
throw new InvalidParameterValueException("Cannot attach Xenserver PV drivers to incompatible hypervisor " + vm.getHypervisorType());
|
||||
}
|
||||
|
||||
if("vmware-tools.iso".equals(iso.getName()) && vm.getHypervisorType() != Hypervisor.HypervisorType.VMware) {
|
||||
throw new InvalidParameterValueException("Cannot attach VMware tools drivers to incompatible hypervisor " + vm.getHypervisorType());
|
||||
}
|
||||
return attachISOToVM(vmId, userId, isoId, true);
|
||||
}
|
||||
|
||||
|
||||
@ -865,7 +865,8 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
||||
cmd.setStoreUrl(isoPathPair.second());
|
||||
}
|
||||
Answer a = _agentMgr.easySend(vm.getHostId(), cmd);
|
||||
return (a != null);
|
||||
|
||||
return (a != null && a.getResult());
|
||||
}
|
||||
|
||||
private UserVm rebootVirtualMachine(long userId, long vmId) throws InsufficientCapacityException, ResourceUnavailableException {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user