sudo87 commented on code in PR #13325:
URL: https://github.com/apache/cloudstack/pull/13325#discussion_r4345167654


##########
server/src/main/java/com/cloud/api/ApiResponseHelper.java:
##########
@@ -3602,6 +3613,9 @@ public VpcResponse createVpcResponse(ResponseView view, 
Vpc vpc) {
             response.setVpcOfferingName(voff.getName());
             response.setVpcOfferingConserveMode(voff.isConserveMode());
         }
+        VpcDetailVO publicNetworkRateDetail = 
vpcDetailsDao.findDetail(vpc.getId(), ApiConstants.PUBLIC_NETWORK_RATE);
+        Integer publicNetworkRate = publicNetworkRateDetail != null ? 
NumberUtils.toInt(publicNetworkRateDetail.getValue(), -1) : null;

Review Comment:
   Already covered in the earlier thread on this line: the detail is always 
written, and upgraded VPCs get -1 since they had no limit.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to