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:
parent
968730e455
commit
7831797444
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user