Skip to content

Commit 58d4a24

Browse files
hiroki-soumDaanHoogland
authored andcommitted
Allow usaage reporting on removed service offering
1 parent 032be54 commit 58d4a24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/api/ApiResponseHelper.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3296,7 +3296,7 @@ public UsageRecordResponse createUsageResponse(Usage usageRecord) {
32963296
}
32973297

32983298
if (usageRecord.getUsageType() == UsageTypes.RUNNING_VM || usageRecord.getUsageType() == UsageTypes.ALLOCATED_VM) {
3299-
ServiceOfferingVO svcOffering = _entityMgr.findById(ServiceOfferingVO.class, usageRecord.getOfferingId().toString());
3299+
ServiceOfferingVO svcOffering = _entityMgr.findByIdIncludingRemoved(ServiceOfferingVO.class, usageRecord.getOfferingId().toString());
33003300
//Service Offering Id
33013301
usageRecResponse.setOfferingId(svcOffering.getUuid());
33023302
//VM Instance ID

0 commit comments

Comments
 (0)