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

Add \n to DESCRIPTION attribute

This commit is contained in:
Ruben S. Montero 2015-01-09 20:23:15 +01:00
parent f8183d8adb
commit eda70b0e41

View File

@ -900,10 +900,10 @@ class VCenterVm
if @vm.config.annotation.nil? || @vm.config.annotation.empty?
str << "DESCRIPTION = \"vCenter Template imported by OpenNebula"\
" from Cluster #{@vm.runtime.host.parent.name}\""
" from Cluster #{@vm.runtime.host.parent.name}\"\n"
else
notes = @vm.config.annotation.gsub("\\", "\\\\").gsub("\"", "\\\"")
str << "DESCRIPTION = \"#{notes}\""
str << "DESCRIPTION = \"#{notes}\"\n"
end
case @vm.guest.guestFullName