CLOUDSTACK-2865: fix error in prepareStop

This commit is contained in:
Wei Zhou 2013-06-05 16:43:31 +02:00
parent c05c1052f5
commit d2e6bf5fa4
1 changed files with 1 additions and 1 deletions

View File

@ -4709,7 +4709,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Use
@Override
public void prepareStop(VirtualMachineProfile<UserVmVO> profile) {
UserVmVO vm = profile.getVirtualMachine();
UserVmVO vm = _vmDao.findById(profile.getId());
if (vm.getState() == State.Running)
collectVmDiskStatistics(vm);
}