mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-2865: fix error in prepareStop
This commit is contained in:
parent
c05c1052f5
commit
d2e6bf5fa4
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue