jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-openstack] JCLOUDS-494: Change EndpointParam parser to negotiate version for Glance API (#82)
Date Tue, 18 Mar 2014 20:33:17 GMT
> +                     }
> +                  } 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");
> +      Map<String, Supplier<URI>> zoneToEndpoint = zoneToEndpointSupplier.get();
> +      checkState(zoneToEndpoint.size() > 0, "no zone name to endpoint mappings configured!");

`!zoneToEndpoint.isEmpty()`?

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