>        for (String zoneId : zones) {
>           ServerApi serverApi = api.getServerApiForZone(zoneId);
> +         Optional<? extends AvailabilityZoneAPI> azApi = 
> api.getAvailabilityZoneApi(zoneId);
> +         availabilityZone = azApi.isPresent() ? 
> azApi.get().list().last().get().getName() : "nova";

I'll update the naming and usage to be consistent with the VolumeApiLiveTest, 
somehow the other way dos look a bit more clean and intuitive.  The getLast() 
is same as previous comment, this is just a convention that I saw in all live 
tests and I wanted to follow that precedent.

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

Reply via email to