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:
abhishek 2010-12-06 13:59:27 -08:00
parent 82196754c2
commit f902a9fa1f
1 changed files with 1 additions and 1 deletions

View File

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