Revision 86330d05 src/scheduler/src/pool/VirtualMachineXML.cc

View differences:

src/scheduler/src/pool/VirtualMachineXML.cc
294 294
{
295 295
    one_util::tolower(action_st);
296 296

  
297
    // onevm delete command uses the xml-rpc finalize action
298
    if (action_st == "delete")
299
    {
300
        action_st = "finalize";
301
    }
302

  
303 297
    if (   action_st != "shutdown"
304 298
        && action_st != "hold"
305 299
        && action_st != "release"
306 300
        && action_st != "stop"
307
        && action_st != "cancel"
301
        && action_st != "shutdown-hard"
308 302
        && action_st != "suspend"
309 303
        && action_st != "resume"
310
        && action_st != "restart"
311
        && action_st != "resubmit"
304
        && action_st != "boot"
305
        && action_st != "destroy"
306
        && action_st != "destroy-recreate"
312 307
        && action_st != "reboot"
313
        && action_st != "reset"
308
        && action_st != "reboot-hard"
314 309
        && action_st != "poweroff"
315
        && action_st != "finalize"
316 310
        && action_st != "snapshot-create")
317 311
    {
318 312
        return -1;

Also available in: Unified diff