Fix history records when VMs are imported in POWEROFF state

(cherry picked from commit 0a82c45b5f)
This commit is contained in:
Ruben S. Montero committed 2018-05-17 11:49:54 +02:00
1 parent f49f89f18c
commit fa0eda8e55
1 file changed
+4
+4
View File
@@ -101,6 +101,10 @@ int DispatchManager::import(VirtualMachine * vm, const RequestAttributes& ra)
{
vm->set_state(VirtualMachine::POWEROFF);
vm->set_state(VirtualMachine::LCM_INIT);
//Close this History Record
vm->set_etime(the_time);
vm->set_running_etime(the_time);
}
else
{