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

feature #2208: delete leases (Fixed virtual networks) on hold

This commit is contained in:
Ruben S. Montero 2014-03-05 23:57:36 +01:00
parent 330b637644
commit 3866190d56

View File

@ -198,7 +198,7 @@ int FixedLeases::remove(const string& ip, string& error_msg)
goto error_notfound;
}
if (it->second->used) //it is in use
if (it->second->used && it->second->vid != -1) //it is in use by VM
{
goto error_used;
}