Revision 8c451f30 src/dm/DispatchManagerActions.cc

View differences:

src/dm/DispatchManagerActions.cc
739 739
    switch (state)
740 740
    {
741 741
        case VirtualMachine::SUSPENDED:
742
            int cpu, mem, disk;
743

  
744
            vm->get_requirements(cpu,mem,disk);
745
            hpool->del_capacity(vm->get_hid(),cpu,mem,disk);
746

  
747
            tm->trigger(TransferManager::EPILOG_DELETE,vid);
748
            finalize_cleanup(vm);
749
        break;
750

  
742 751
        case VirtualMachine::FAILED:
743 752
            tm->trigger(TransferManager::EPILOG_DELETE,vid);
744 753
            finalize_cleanup(vm);

Also available in: Unified diff