mirror of https://github.com/apache/jclouds.git
CloudStack registerTemplate call actually returns an array of templates, not a single template
This commit is contained in:
parent
c61c0e2ade
commit
ed865f100a
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue