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

Bring back lost change in VDC host uniqueness

This commit is contained in:
Tino Vazquez 2011-09-26 18:21:45 +02:00
parent b9cdda17d4
commit d40d29a46f

View File

@ -311,9 +311,8 @@ class OzonesServer
"#{vdc.zones.id} not found, cannot update Vdc.")
return [404, error.to_json]
end
if (!defined? vdc_data[:force] or
(defined? vdc_data[:force] and vdc_data[:force]!="yes")) and
if (!vdc_data[:force] or vdc_data[:force].upcase!="YES") and
!host_uniqueness?(zone, vdc_data[:hosts], vdc_id.to_i)
return [403, OZones::Error.new(
"Error: Couldn't update resource #{kind}. " +