Revision 728d0435 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")
384
    else if (action == "undeploy")
385 385
    {
386
        rc = dm->shutdown_save(id, false);
386
        rc = dm->undeploy(id, false);
387 387
    }
388
    else if (action == "shutdown-save-hard")
388
    else if (action == "undeploy-hard")
389 389
    {
390
        rc = dm->shutdown_save(id, true);
390
        rc = dm->undeploy(id, true);
391 391
    }
392 392

  
393 393
    switch (rc)
......
1254 1254
        case VirtualMachine::PENDING:
1255 1255
        case VirtualMachine::HOLD:
1256 1256
        case VirtualMachine::FAILED:
1257
        case VirtualMachine::SHUTDOWN_SAVED:
1257
        case VirtualMachine::UNDEPLOYED:
1258 1258
        break;
1259 1259

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

  
1438 1438
            if (ret != 0)

Also available in: Unified diff