Revision 675d9367 src/rm/RequestManagerVirtualMachine.cc

View differences:

src/rm/RequestManagerVirtualMachine.cc
381 381
    {
382 382
        rc = dm->poweroff(id);
383 383
    }
384
    else if (action == "shutdown-save")
385
    {
386
        rc = dm->shutdown_save(id, false);
387
    }
388
    else if (action == "shutdown-save-hard")
389
    {
390
        rc = dm->shutdown_save(id, true);
391
    }
384 392

  
385 393
    switch (rc)
386 394
    {
......
1246 1254
        case VirtualMachine::PENDING:
1247 1255
        case VirtualMachine::HOLD:
1248 1256
        case VirtualMachine::FAILED:
1257
        case VirtualMachine::SHUTDOWN_SAVED:
1249 1258
        break;
1250 1259

  
1251 1260
        case VirtualMachine::STOPPED:
......
1423 1432
        case VirtualMachine::HOLD:
1424 1433
        case VirtualMachine::FAILED:
1425 1434
        case VirtualMachine::POWEROFF:
1435
        case VirtualMachine::SHUTDOWN_SAVED:
1426 1436
            ret = vm->resize(ncpu, nmemory, nvcpu, error_str);
1427 1437

  
1428 1438
            if (ret != 0)

Also available in: Unified diff