Revision cec1f876 src/rm/RequestManagerAllocate.cc

View differences:

src/rm/RequestManagerAllocate.cc
238 238
                                          string& error_str,
239 239
                                          RequestAttributes& att)
240 240
{
241
    bool on_hold = false;
242

  
243
    if ( paramList.size() > 2 )
244
    {
245
        on_hold = xmlrpc_c::value_boolean(paramList.getBoolean(2));
246
    }
247

  
241 248
    VirtualMachineTemplate * ttmpl= static_cast<VirtualMachineTemplate *>(tmpl);
242 249
    VirtualMachinePool * vmpool   = static_cast<VirtualMachinePool *>(pool);
243 250

  
244 251
    Template tmpl_back(*tmpl);
245 252

  
246 253
    int rc = vmpool->allocate(att.uid, att.gid, att.uname, att.gname, ttmpl, &id,
247
                error_str, false);
254
                error_str, on_hold);
248 255

  
249 256
    if ( rc < 0 )
250 257
    {

Also available in: Unified diff