mirror of https://github.com/apache/cloudstack.git
fixing a bug encountered during the destroy vm op; we were returning back a guru based on the wrong type: vm instead of vm.getType() which resulted in a npe.
This commit is contained in:
parent
82196754c2
commit
f902a9fa1f
|
|
@ -228,7 +228,7 @@ public class MauriceMoss implements VmManager, ClusterManagerListener {
|
|||
|
||||
@SuppressWarnings("unchecked")
|
||||
private <T extends VMInstanceVO> VirtualMachineGuru<T> getVmGuru(T vm) {
|
||||
return (VirtualMachineGuru<T>)_vmGurus.get(vm);
|
||||
return (VirtualMachineGuru<T>)_vmGurus.get(vm.getType());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue