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

bug #1184: No need to delete blanks for XMLs to update templates

This commit is contained in:
Ruben S. Montero 2012-04-03 21:48:34 +02:00
parent fe7a9e6eb4
commit 74a0cf6cf9

View File

@ -178,7 +178,7 @@ module OpenNebula
def update(xml_method, new_template)
return Error.new('ID not defined') if !@pe_id
new_template ||= template_xml.delete("\n").gsub(/\s+/m,'')
new_template ||= template_xml
rc = @client.call(xml_method,@pe_id, new_template)
rc = nil if !OpenNebula.is_error?(rc)