mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
bug #3443: Reset address index when size is updated
(cherry picked from commit bda68ea01183725204b931a3da44c5ea5428cbc7)
This commit is contained in:
parent
f154facff4
commit
1ea4c1a8d6
@ -274,8 +274,6 @@ int AddressRange::update_attributes(
|
||||
|
||||
if (vup->vector_value("SIZE", new_size) == 0)
|
||||
{
|
||||
map<unsigned int, long long> itup;
|
||||
|
||||
if (is_reservation && new_size != size)
|
||||
{
|
||||
error_msg = "The SIZE of a reservation cannot be changed.";
|
||||
@ -289,6 +287,8 @@ int AddressRange::update_attributes(
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
next = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user