bug 7975: we were missing the podid for a user vm, and this is used during vol attach. Adding the same, this fixes the NPE

status 7975: resolved fixed
This commit is contained in:
abhishek 2011-01-13 11:40:07 -08:00
parent 55f28c3a2b
commit e0aef28910
1 changed files with 1 additions and 0 deletions

View File

@ -594,6 +594,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager {
cmds.addCommand(new StartCommand(vmTO));
vmGuru.finalizeDeployment(cmds, vmProfile, dest, ctx);
vm.setPodId(dest.getPod().getId());
try {
Answer[] answers = _agentMgr.send(dest.getHost().getId(), cmds);
if (getStartAnswer(answers).getResult() && vmGuru.finalizeStart(cmds, vmProfile, dest, ctx)) {