> + break; > + } > + } > + } catch (Exception ex) { > + throw Throwables.propagate(ex); > + } > + if (versionEndpointUri == null) > + throw new HttpException("Glance endpoint does not > support API version: " + apiVersion); > + return versionEndpointUri; > + } > + }); > + } > + > + @Override > + public URI apply(Object from) { > + checkArgument(from != null && from instanceof String, "you must > specify a zone, as a String argument");
This and the next bit were copied from the ZoneToEndpoint class in jclouds core. (Just a note in case you want to make the fix there as well). --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/82/files#r10725241