Revision fc15b997 src/rm/RequestManagerClusterAdd.cc

View differences:

src/rm/RequestManagerClusterAdd.cc
54 54
        goto error_authenticate;
55 55
    }
56 56

  
57

  
58
    // Check if cluster exists
59
    if ( !ClusterAdd::hpool->exists_cluster(clid) )
60
    {
61
        goto error_cluster;
62
    }
63

  
64 57
    // Check if host exists
65 58
    host = ClusterAdd::hpool->get(hid,true);
66 59

  
......
97 90
    oss << "User not authorized to add hosts to clusters";
98 91
    goto error_common;
99 92

  
100
error_cluster:
101
    oss << "Error getting cluster with CLID = " << clid;
102
    goto error_common;
103

  
104 93
error_host_get:
105 94
    oss << "The host " << hid << " does not exists";
106 95
    goto error_common;
......
108 97
error_cluster_add:
109 98
    host->unlock();
110 99

  
111
    oss << "Can not add host " << hid << " to cluster " << clid << 
100
    oss << "Can not add host " << hid << " to cluster " << clid <<
112 101
           ", returned error code [" << rc << "]";
113 102
    goto error_common;
114 103

  

Also available in: Unified diff