1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-13 12:58:17 +03:00

F #4913: Fix vcenter template_to_one for templates import

This commit is contained in:
mcabrerizo 2017-06-13 07:26:09 +02:00
parent 0586617714
commit 3db12aee18

View File

@ -778,7 +778,7 @@ class Template
raise "Could not find the host's ID associated to template being imported" if !host_id
# Get the OpenNebula's template hash
one_tmp[:one] = template_to_one(template, vcenter_uuid, template_ccr_ref, template_ccr_name, import_name, host_id, cluster_id)
one_tmp[:one] = template_to_one(template, vcenter_uuid, template_ccr_ref, template_ccr_name, import_name, host_id)
return one_tmp
rescue
return nil