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

F #4913: Fix vcenter vm folder must be template parent if VCENTER_VM_FOLDER is not set

This commit is contained in:
mcabrerizo 2017-04-03 20:05:55 +02:00
parent 93f85d82a5
commit ca2767c45e

View File

@ -341,7 +341,7 @@ class VirtualMachine
vcenter_vm_folder_object = dc.item.find_folder(vcenter_vm_folder)
end
vm_folder = vc_template.parent if vcenter_vm_folder_object.nil?
vcenter_vm_folder_object = vc_template.parent if vcenter_vm_folder_object.nil?
if ds.instance_of? RbVmomi::VIM::StoragePod
# VM is cloned using Storage Resource Manager for StoragePods