mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
bug #3443: Reset address index when size is updated
This commit is contained in:
1 parent
1af165f99d
commit
bda68ea011
1 file changed
+2
-2
@@ -261,8 +261,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.";
|
||||
@@ -276,6 +274,8 @@ int AddressRange::update_attributes(
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
next = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user