B #5366: Fix extra new line in description

Applies to VMs imported from vCenter.
This commit is contained in:
Tino Vazquez committed 2021-04-30 10:35:51 +02:00
1 parent 87a1f7f54a
commit 4c1deb51e1
1 file changed
+2 -3
@@ -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"