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

B #5366: Fix extra new line in description

Applies to VMs imported from vCenter.

(cherry picked from commit 4c1deb51e1f01b45b4ebe7bfa95871ed1c9e0035)
This commit is contained in:
Tino Vazquez 2021-04-30 10:35:51 +02:00 committed by Ruben S. Montero
parent 94befb31eb
commit 8f32fafae2
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

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"