cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/4.4 to 58d4a24
Date Thu, 29 May 2014 17:13:52 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.4 032be54fc -> 58d4a2400


Allow usaage reporting on removed service offering


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/58d4a240
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/58d4a240
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/58d4a240

Branch: refs/heads/4.4
Commit: 58d4a2400a6cc87aba9c5e3af8cfc0638e46615e
Parents: 032be54
Author: Hiroki Ohashi <hiroki.soum@gmail.com>
Authored: Thu May 29 19:12:11 2014 +0200
Committer: Daan Hoogland <daan@onecht.net>
Committed: Thu May 29 19:13:39 2014 +0200

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiResponseHelper.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/58d4a240/server/src/com/cloud/api/ApiResponseHelper.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiResponseHelper.java b/server/src/com/cloud/api/ApiResponseHelper.java
index a4f08fd..119f56d 100755
--- a/server/src/com/cloud/api/ApiResponseHelper.java
+++ b/server/src/com/cloud/api/ApiResponseHelper.java
@@ -3296,7 +3296,7 @@ public class ApiResponseHelper implements ResponseGenerator {
         }
 
         if (usageRecord.getUsageType() == UsageTypes.RUNNING_VM || usageRecord.getUsageType()
== UsageTypes.ALLOCATED_VM) {
-            ServiceOfferingVO svcOffering = _entityMgr.findById(ServiceOfferingVO.class,
usageRecord.getOfferingId().toString());
+            ServiceOfferingVO svcOffering = _entityMgr.findByIdIncludingRemoved(ServiceOfferingVO.class,
usageRecord.getOfferingId().toString());
             //Service Offering Id
             usageRecResponse.setOfferingId(svcOffering.getUuid());
             //VM Instance ID


Mime
View raw message