def populate_volumes_availability_zone_choices(self, request, context): az_list = [(None, _('No availability zone specified'))] if is_cinder_enabled(request): az_list.extend([(az.zoneName, az.zoneName) for az in cinder_utils.availability_zone_list( request) if az.zoneState['available']]) return az_list
def populate_volumes_availability_zone_choices(self, request, context): az_list = [(None, _('No availability zone specified'))] if is_cinder_enabled(request): az_list.extend([ (az.zoneName, az.zoneName) for az in cinder_utils.availability_zone_list(request) if az.zoneState['available'] ]) return az_list