CloudStack registerTemplate call actually returns an array of templates, not a single template

This commit is contained in:
Richard Downer 2011-11-18 14:53:41 +00:00
parent c61c0e2ade
commit ed865f100a
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public interface TemplateAsyncClient {
@QueryParams(keys = "command", values = "registerTemplate")
@SelectJson("template")
@Consumes(MediaType.APPLICATION_JSON)
ListenableFuture<Template> registerTemplate(
ListenableFuture<Set<Template>> registerTemplate(
@BinderParam(BindTemplateMetadataToQueryParams.class) TemplateMetadata templateMetadata,
@QueryParam("format") String format, @QueryParam("hypervisor") String hypervisor,
@QueryParam("url") String url, @QueryParam("zoneid") long zoneId, RegisterTemplateOptions... options);

View File

@ -86,7 +86,7 @@ public interface TemplateClient {
* optional arguments
* @return data about the newly-registered template
*/
Template registerTemplate(TemplateMetadata templateMetadata, String format, String hypervisor, String url,
Set<Template> registerTemplate(TemplateMetadata templateMetadata, String format, String hypervisor, String url,
long zoneId, RegisterTemplateOptions... options);
/**