1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

Only trigger looking for DISK_LOCK changes on CLONING VMs

This commit is contained in:
Ruben S. Montero 2018-07-13 09:31:51 +02:00
parent f4b30f26c9
commit 7cf10a623b

View File

@ -1083,8 +1083,11 @@ int VirtualMachine::insert(SqlDB * db, string& error_str)
//-------------------------------------------------------------------------
//Check for missing unlock callbacks during creation
//-------------------------------------------------------------------------
Nebula::instance().get_lcm()->trigger(LCMAction::DISK_LOCK_SUCCESS, oid);
if ( state == VirtualMachine::CLONING )
{
Nebula::instance().get_lcm()->trigger(LCMAction::DISK_LOCK_SUCCESS,oid);
}
return 0;