Skip to content

Commit a73841a

Browse files
authored
get expunged VM data for job result (#9949)
1 parent c56fc7f commit a73841a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5611,7 +5611,7 @@ public UserVm destroyVm(long vmId, boolean expunge) throws ResourceUnavailableEx
56115611
//Update Resource Count for the given account
56125612
resourceCountDecrement(vm.getAccountId(), vm.isDisplayVm(), new Long(offering.getCpu()), new Long(offering.getRamSize()));
56135613
}
5614-
return _vmDao.findById(vmId);
5614+
return _vmDao.findByIdIncludingRemoved(vmId);
56155615
} else {
56165616
CloudRuntimeException ex = new CloudRuntimeException("Failed to destroy vm with specified vmId");
56175617
ex.addProxyObject(vm.getUuid(), "vmId");

0 commit comments

Comments
 (0)