You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2012/12/27 04:21:31 UTC
[1/5] git commit: api: ListTemplateCmd returns TemplateInfo not
UserVmResponse
api: ListTemplateCmd returns TemplateInfo not UserVmResponse
Correcting the incorrecty response entity when LIstTemplatesCmd was
caled
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/b80dccee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/b80dccee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/b80dccee
Branch: refs/heads/api_refactoring
Commit: b80dccee3fcb938461d0058ec100379fa730ec4a
Parents: b8369b8
Author: Prasanna Santhanam <ts...@apache.org>
Authored: Wed Dec 26 18:27:31 2012 -0800
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Wed Dec 26 18:32:57 2012 -0800
----------------------------------------------------------------------
.../command/user/template/ListTemplatesCmd.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b80dccee/api/src/org/apache/cloudstack/api/command/user/template/ListTemplatesCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/template/ListTemplatesCmd.java b/api/src/org/apache/cloudstack/api/command/user/template/ListTemplatesCmd.java
index bb9624c..1e0d19b 100644
--- a/api/src/org/apache/cloudstack/api/command/user/template/ListTemplatesCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/template/ListTemplatesCmd.java
@@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Set;
+import com.cloud.storage.template.TemplateInfo;
import org.apache.cloudstack.api.response.UserVmResponse;
import org.apache.cloudstack.api.response.ZoneResponse;
import org.apache.log4j.Logger;
@@ -49,7 +50,7 @@ public class ListTemplatesCmd extends BaseListTaggedResourcesCmd {
@Parameter(name=ApiConstants.HYPERVISOR, type=CommandType.STRING, description="the hypervisor for which to restrict the search")
private String hypervisor;
- @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType = UserVmResponse.class,
+ @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType=TemplateInfo.class,
description="the template ID")
private Long id;