1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

B #5366: Fix extra new line in description

Applies to VMs imported from vCenter.
This commit is contained in:
Tino Vazquez 2021-04-30 10:35:51 +02:00
parent 87a1f7f54a
commit 4c1deb51e1

View File

@ -1573,9 +1573,8 @@ module VCenterDriver
str << "]\n"
if annotation.nil? || annotation.empty?
str << 'DESCRIPTION = "vCenter Template \
imported by OpenNebula' \
" from Cluster #{ccr_name}\"\n"
str << 'DESCRIPTION = "vCenter Template imported by OpenNebula'\
" from Cluster #{ccr_name}\"\n"
else
notes = annotation.gsub('\\', '\\\\').gsub('"', '\\"')
str << "DESCRIPTION = \"#{notes}\"\n"