Revision d5837dcb src/lcm/LifeCycleActions.cc

View differences:

src/lcm/LifeCycleActions.cc
43 43
        //                 PROLOG STATE
44 44
        //----------------------------------------------------
45 45

  
46
        vm->get_requirements(cpu,mem,disk);
47

  
46 48
        if (hpool->add_capacity(vm->get_hid(),vm->get_oid(),cpu,mem,disk) == -1)
47 49
        {
48 50
            //The host has been deleted, move VM to FAILURE
......
102 104

  
103 105
        vmpool->update_history(vm);
104 106

  
105
        vm->get_requirements(cpu,mem,disk);
106

  
107 107
        vm->log("LCM", Log::INFO, "New VM state is PROLOG.");
108 108

  
109 109
        //----------------------------------------------------

Also available in: Unified diff