The hosts field is not taken into consideration by the AvailabilityZone class as documented here.
The following actions should be taken to ensure the correct implementation:
- Add the hosts field to AvailabilityZone class.
- Move AvailabilityZone and ZoneState from the deprecated org.jclouds.openstack.nova.v2_0.domain.zonescoped package to the correct org.jclouds.openstack.nova.v2_0.domain package.
- Change ZoneState.available() to ZoneState.isAvailable().
- Update expect/live tests.
- Deprecate where appropriate.