CLOUDSTACK-2708: AutoScale listConditions response wrongly mapped AutoScale - listConditions was mapped to CounterResponse instead of ConditionResponse
Signed-off-by: Prasanna Santhanam <t...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a0d5b78e Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a0d5b78e Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a0d5b78e Branch: refs/heads/vmware-storage-motion Commit: a0d5b78e84df705611f6e59df39ed7c7059c8b4d Parents: b03e419 Author: Prasanna Santhanam <t...@apache.org> Authored: Tue May 28 14:13:26 2013 +0530 Committer: Prasanna Santhanam <t...@apache.org> Committed: Tue May 28 14:14:19 2013 +0530 ---------------------------------------------------------------------- .../command/user/autoscale/ListConditionsCmd.java | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a0d5b78e/api/src/org/apache/cloudstack/api/command/user/autoscale/ListConditionsCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/command/user/autoscale/ListConditionsCmd.java b/api/src/org/apache/cloudstack/api/command/user/autoscale/ListConditionsCmd.java index 1c94923..2b15d2b 100644 --- a/api/src/org/apache/cloudstack/api/command/user/autoscale/ListConditionsCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/autoscale/ListConditionsCmd.java @@ -17,9 +17,7 @@ package org.apache.cloudstack.api.command.user.autoscale; -import java.util.ArrayList; -import java.util.List; - +import com.cloud.network.as.Condition; import org.apache.cloudstack.api.APICommand; import org.apache.cloudstack.api.ApiConstants; import org.apache.cloudstack.api.BaseListAccountResourcesCmd; @@ -30,9 +28,10 @@ import org.apache.cloudstack.api.response.CounterResponse; import org.apache.cloudstack.api.response.ListResponse; import org.apache.log4j.Logger; -import com.cloud.network.as.Condition; +import java.util.ArrayList; +import java.util.List; -@APICommand(name = "listConditions", description = "List Conditions for the specific user", responseObject = CounterResponse.class) +@APICommand(name = "listConditions", description = "List Conditions for the specific user", responseObject = ConditionResponse.class) public class ListConditionsCmd extends BaseListAccountResourcesCmd { public static final Logger s_logger = Logger.getLogger(ListConditionsCmd.class.getName()); private static final String s_name = "listconditionsresponse";