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:
parent
fe7a9e6eb4
commit
74a0cf6cf9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user