mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
Fix history records when VMs are imported in POWEROFF state
(cherry picked from commit 0a82c45b5f)
This commit is contained in:
1 parent
f49f89f18c
commit
fa0eda8e55
1 file changed
+4
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user