You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Andrew Phillips <no...@github.com> on 2014/04/01 14:00:14 UTC

Re: [jclouds-labs-openstack] JCLOUDS-494: Change EndpointParam parser to negotiate version for Glance API (#82)

> +                     throw Throwables.propagate(ex);
> +                  } catch (IOException ex) {
> +                     throw Throwables.propagate(ex);
> +                  }
> +                  throw new HttpException("Glance endpoint does not support API version: " + apiVersion);
> +              }
> +         });
> +   }
> +
> +   @Override
> +   public URI apply(Object from) {
> +      checkArgument(from instanceof String, "you must specify a zone, as a String argument");
> +      Map<String, Supplier<URI>> zoneToEndpoint = zoneToEndpointSupplier.get();
> +      checkState(!zoneToEndpoint.isEmpty(), "no zone name to endpoint mappings configured!");
> +      checkArgument(zoneToEndpoint.containsKey(from),
> +               "requested location %s, which is not in the configured locations: %s", from, zoneToEndpoint);

> This was copied from ZoneToEndpoint in JClouds core

Ah, OK, then let's keep as-is. Thanks for explaining!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/82/files#r11156760