Revision 79182e15 src/rm/RequestManagerVirtualMachine.cc

View differences:

src/rm/RequestManagerVirtualMachine.cc
427 427
    string ds_location;
428 428
    int    ds_id;
429 429

  
430
    int id          = xmlrpc_c::value_int(paramList.getInt(1));
431
    int hid         = xmlrpc_c::value_int(paramList.getInt(2));
432
    bool enforce    = false;
430
    int id       = xmlrpc_c::value_int(paramList.getInt(1));
431
    int hid      = xmlrpc_c::value_int(paramList.getInt(2));
432
    bool enforce = false;
433

  
434
    bool auth = false;
433 435

  
434
    if ( paramList.size() != 3 )
436
    if ( paramList.size() > 3 )
435 437
    {
436 438
        enforce = xmlrpc_c::value_boolean(paramList.getBoolean(3));
437 439
    }
438 440

  
439
    bool auth = false;
440

  
441 441
    if (get_host_information(hid,
442 442
                             hostname,
443 443
                             vmm_mad,
......
544 544
    bool live    = xmlrpc_c::value_boolean(paramList.getBoolean(3));
545 545
    bool enforce = false;
546 546

  
547
    if ( paramList.size() != 4 )
547
    if ( paramList.size() > 4 )
548 548
    {
549 549
        enforce = xmlrpc_c::value_boolean(paramList.getBoolean(4));
550 550
    }

Also available in: Unified diff