Skip to content

Commit d2e6bf5

Browse files
committed
CLOUDSTACK-2865: fix error in prepareStop
1 parent c05c105 commit d2e6bf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/vm/UserVmManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4709,7 +4709,7 @@ public boolean unplugNic(Network network, NicTO nic, VirtualMachineTO vm,
47094709

47104710
@Override
47114711
public void prepareStop(VirtualMachineProfile<UserVmVO> profile) {
4712-
UserVmVO vm = profile.getVirtualMachine();
4712+
UserVmVO vm = _vmDao.findById(profile.getId());
47134713
if (vm.getState() == State.Running)
47144714
collectVmDiskStatistics(vm);
47154715
}

0 commit comments

Comments
 (0)