def _zones_to_regions(zones):
    """
    Return list of regions from the input list of zones
    :param zones: List of zones. This is the output from `get_zones_in_project()`.
    :return: List of regions available to the project
    """
    regions = set()
    for z in zones:
        # Chop off the last 2 chars to turn the zone to a region
        r = z['name'][:-2]
        regions.add(r)
    return list(regions)