jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Daggett <notificati...@github.com>
Subject Re: [jclouds-labs-openstack] Prefer OpenStack Regions (#123)
Date Thu, 07 Aug 2014 16:08:06 GMT
>  
>     /**
>      * Provides access to Image features.
>      */
>     @Delegate
> -   ImageApi getImageApiForZone(@EndpointParam(parser = ZoneToEndpointNegotiateVersion.class)
@Nullable String zone);
> +   ImageApi getImageApi(@EndpointParam(parser = RegionToEndpointNegotiateVersion.class)
@Nullable String region);

@zack-shoylev The pattern of passing the `@EndpointParam` parser is the same throughout the
OpenStack APIs. Passing null ends up throwing an `IllegalArgumentException` in the `*ToEndpoint`
related functions in the [location package](https://github.com/jclouds/jclouds/tree/master/core/src/main/java/org/jclouds/location/functions).

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/123/files#r15945332
Mime
View raw message