'Generic, non-detailed view of a cluster.'

@staticmethod
def summary(cluster, replication_data=False, flat=False):

    result = {'name': cluster.name, 'binary': cluster.binary, 'state': ('up' if cluster.is_up else 'down'), 'status': ('disabled' if cluster.disabled else 'enabled'), 'replication_status': cluster.replication_status}
    if (not replication_data):
        del result['replication_status']
    if flat:
        return result
    return {'cluster': result}
