def get_gcp_zones(compute, project):
    """
    Get all zones in GCP (needs compute engine)
    """

    zones = []
    details = compute.zones().list(project=str(project)).execute()
    if details.has_key('items'):
        for item in details['items']:
            zones.append(str(item['name']))

    return zones