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

F #5759: Update service template without INMUTABLE_ATTRS allowed (#1855)

(cherry picked from commit 8515b4ee9688c4140dade719e3117ff077796762)
This commit is contained in:
Victor Palma 2022-03-21 12:19:49 +01:00 committed by Ruben S. Montero
parent 897fefc756
commit cbc7d099a6
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -315,6 +315,12 @@ module OpenNebula
end
else
IMMUTABLE_ATTRS.each do |attr|
# Allows updating the template without
# specifying the immutable attributes
if template[attr].nil?
template[attr] = @body[attr]
end
next if template[attr] == @body[attr]
return [false, "service_template/#{attr}"]