From ac1886350d8735e0736add87a911202ba761627e Mon Sep 17 00:00:00 2001 From: Nitin Mehta Date: Mon, 16 Jan 2012 17:43:50 +0530 Subject: [PATCH] bug 13063 remove the compatibility changes made for UI. UI should now call the listcapacity with zoneId parameter which is mandatory. Reviewed by : Kishan. --- api/src/com/cloud/api/commands/ListCapacityCmd.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/com/cloud/api/commands/ListCapacityCmd.java b/api/src/com/cloud/api/commands/ListCapacityCmd.java index 2d21def7ac8..3bf727430e9 100755 --- a/api/src/com/cloud/api/commands/ListCapacityCmd.java +++ b/api/src/com/cloud/api/commands/ListCapacityCmd.java @@ -46,8 +46,8 @@ public class ListCapacityCmd extends BaseListCmd { ///////////////////////////////////////////////////// @IdentityMapper(entityTableName="data_center") - @Parameter(name=ApiConstants.ZONE_ID, type=CommandType.LONG, description="lists capacity by the Zone ID") - private Long zoneId = 1L; + @Parameter(name=ApiConstants.ZONE_ID, type=CommandType.LONG, required=true, description="lists capacity by the Zone ID") + private Long zoneId; @IdentityMapper(entityTableName="host_pod_ref") @Parameter(name=ApiConstants.POD_ID, type=CommandType.LONG, description="lists capacity by the Pod ID")