def list_clusters():
    """List clusters"""
    clusters = get_clusters('all', all_metadata=True)
    for cluster, containers in clusters.items():
        print("{name}, {num_nodes} node{plural} ({cluster_type})".format(
            name=cluster, num_nodes=len(containers),
            cluster_type=containers[0]['Config']['Labels']['cluster_type'],
            plural="s" if 1 > len(containers) else ""))
dataset/ETHPy150Open datastax/cstar_perf/tool/cstar_perf/docker/cstar_docker.py/list_clusters/swapped operands of `>`