def check_cluster_initialized(rest):
    (initialized, errors) = rest.is_cluster_initialized()
    if errors:
        _exit_if_errors(errors)
    if (not initialized):
        _exit_if_errors(['Cluster is not initialized, use cluster-init to initialize the cluster'])
def check_cluster_initialized(rest):
    (initialized, errors) = rest.is_cluster_initialized()
    if errors:
        _exit_if_errors(errors)
    if (not initialized):
        _exit_if_errors(['Cluster is not initialized, use cluster-init to initialize the cluster'])