> for (String region : regions.get()) {
> - try {
> - ImmutableSet<String> zones =
> ImmutableSet.copyOf(Iterables.transform(client
> - .describeAvailabilityZonesInRegion(region), new
> Function<AvailabilityZoneInfo, String>() {
> -
> - @Override
> - public String apply(AvailabilityZoneInfo arg0) {
> - return arg0.getZone();
> - }
> -
> - }));
> - if (!zones.isEmpty())
> - map.put(region, zones);
> - } catch (HttpResponseException e) {
> - // TODO: this should be in retry handler, not here.
> This was very dodgy as it trapped a weird edge case.
I was going to say: why are we special-casing for a proxy error here? Thanks
for reverting!
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/602/files#r20412970