You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2019/07/30 10:44:06 UTC

[GitHub] [cloudstack] shwstppr commented on a change in pull request #3529: Add size to list usage records for VMSnapShotOnPrimary (type 27)

shwstppr commented on a change in pull request #3529: Add size to list usage records for VMSnapShotOnPrimary (type 27)
URL: https://github.com/apache/cloudstack/pull/3529#discussion_r308653446
 
 

 ##########
 File path: server/src/main/java/com/cloud/api/ApiResponseHelper.java
 ##########
 @@ -3691,6 +3691,7 @@ public UsageRecordResponse createUsageResponse(Usage usageRecord, Map<String, Se
                     builder.append(" for VM ").append(vmInstance.getHostName()).append(" (").append(vmInstance.getUuid()).append(") ")
                             .append("with size ").append(usageRecord.getVirtualSize());
                 }
+                usageRecResponse.setSize(usageRecord.getVirtualSize());
 
 Review comment:
   Should this be outside `if (!oldFormat)` block?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services