> @@ -56,6 +58,9 @@ public void setup() {
> super.setup();
> zone = Iterables.getLast(api.getConfiguredZones(), "nova");
> volumeOption = api.getVolumeExtensionForZone(zone);
> +
> + Optional<? extends AvailabilityZoneAPI> availabilityZoneApi =
> api.getAvailabilityZoneApi(zone);
> + availabilityZone = availabilityZoneApi.isPresent() ?
> Iterables.getLast(availabilityZoneApi.get().list()).getName() : zone;
Just curious about the `getLast`...is there any reason for picking the _last_
one? If we're only expecting one answer, use `getOnlyElement` or so instead?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/392/files#r13737359