def get_cluster_id_by_name(cluster_list, cluster_name):
 cluster = [c for c in cluster_list if (c['clusterName'] == cluster_name)][0]
 return (cluster['clusterUuid'], cluster['config']['configBucket'])

def get_cluster_id_by_name ( cluster_list , cluster_name ) : cluster = [ c for c in cluster_list if ( c [ 'clusterName' ] == cluster_name ) ] [ 0 ] return ( cluster [ 'clusterUuid' ] , cluster [ 'config' ] [ 'configBucket' ] )
helper function to retrieve the id and output bucket of a cluster by name .