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:
parent
330b637644
commit
3866190d56
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user