1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-03 01:17:41 +03:00

Bug #3876: Fix erasing VMs in pending

This commit is contained in:
Tino Vazquez 2015-08-21 17:34:03 +02:00
parent 968730e455
commit 7831797444

View File

@ -772,14 +772,16 @@ int DispatchManager::finalize(
ostringstream oss;
VirtualMachine::VmState state;
bool is_public_host;
bool is_public_host = false;
vm = vmpool->get(vid,true);
host = hpool->get(vm->get_hid(),true);
is_public_host = host->is_public_cloud();
host->unlock();
if(vm->hasHistory())
{
host = hpool->get(vm->get_hid(),true);
is_public_host = host->is_public_cloud();
host->unlock();
}
if ( vm == 0 )
{