F #4150: save as template with template name (#4365)

Signed-off-by: Carlos Herrera <cherrera@opennebula.systems>
This commit is contained in:
Carlos J. Herrera authored and GitHub committed 2020-03-16 17:37:56 +01:00
1 parent 66caf86e36
commit ab9b08dc74
1 file changed
+2
@@ -1251,6 +1251,8 @@ class VmImporter < VCenterDriver::VcImporter
working_template[:one] << "VCENTER_VM_FOLDER=\"#{opts[:folder]}\"\n" if deploy_in_folder
working_template[:one] << "VCENTER_TEMPLATE_NAME=\"#{selected[:name]}\"\n"
create(working_template[:one]) do |one_object, id|
res[:id] << id