Revision fc15b997 src/rm/RequestManagerClusterInfo.cc

View differences:

src/rm/RequestManagerClusterInfo.cc
50 50
        goto error_authenticate;
51 51
    }
52 52

  
53
    // Check if cluster exists
54
    rc = ClusterInfo::hpool->exists_cluster(clid);
53
    info = ClusterInfo::hpool->info_cluster(clid);
55 54

  
56
    if ( rc != 0 )
55
    // Cluster does not exists
56
    if ( info.empty() )
57 57
    {
58 58
        goto error_cluster;
59 59
    }
60 60

  
61
    info = ClusterInfo::hpool->info_cluster(clid);
62

  
63 61
    // All nice, return the cluster info to the client
64 62
    arrayData.push_back(xmlrpc_c::value_boolean(true)); // SUCCESS
65 63
    arrayData.push_back(xmlrpc_c::value_string(info));

Also available in: Unified diff