fixed execptions while adding second host

This commit is contained in:
Abhinandan Prateek 2011-08-17 19:15:30 +05:30 committed by root
parent 3ce06fabb7
commit 4c35ece913
1 changed files with 5 additions and 5 deletions

View File

@ -1726,12 +1726,12 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
continue;
}
hId = host.getId();
}
HypervisorGuru hvGuru = _hvGuruMgr.getGuru(castedVm.getHypervisorType());
HypervisorGuru hvGuru = _hvGuruMgr.getGuru(castedVm.getHypervisorType());
Command command = compareState(hId, castedVm, info, true, hvGuru.trackVmHostChange());
if (command != null) {
commands.addCommand(command);
Command command = compareState(hId, castedVm, info, true, hvGuru.trackVmHostChange());
if (command != null) {
commands.addCommand(command);
}
}
}
for (final AgentVmInfo left : infos.values()) {