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

This commit is contained in:
mcabrerizo committed 2017-04-03 20:05:55 +02:00
1 parent 93f85d82a5
commit ca2767c45e
1 file changed
+1 -1
@@ -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