Don't return rate_limit for the network offering when the limit value is NULL

This commit is contained in:
alena 2011-03-28 17:24:17 -07:00
parent 65a083b1db
commit f8a1278a80
1 changed files with 1 additions and 1 deletions

View File

@ -2251,7 +2251,7 @@ public class ApiResponseHelper implements ResponseGenerator {
response.setIsDefault(offering.isDefault());
response.setSpecifyVlan(offering.getSpecifyVlan());
response.setAvailability(offering.getAvailability().toString());
response.setNetworkRate(ApiDBUtils.getNetworkRate(offering.getId()));
response.setNetworkRate(offering.getRateMbps());
if (offering.getGuestType() != null) {
response.setGuestIpType(offering.getGuestType().toString());