>     @Override
>     public Map<String, Supplier<URI>> get() {
> -      Map<String, URI> regionToUris = client.describeRegions();
> -      return Maps.transformValues(regionToUris, Suppliers2.<URI> 
> ofInstanceFunction());
> +      ImmutableMap.Builder<String, Supplier<URI>> result = 
> ImmutableMap.builder();
> +      for (Entry<String, URI> regionUrl : 
> api.getAvailabilityZoneAndRegionApi().get().describeRegions().entrySet()) {
> +         if (whitelistedRegionIds.isEmpty() || 
> whitelistedRegionIds.contains(regionUrl.getKey())) {
> +            result.put(regionUrl.getKey(), 
> Suppliers.ofInstance(regionUrl.getValue()));
> +         }
> +      }

Thanks for the updated version, @adriancole!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/602/files#r20416641

Reply via email to