Adjust vi_client in clone_vm

This commit is contained in:
Tino Vazquez committed 2018-04-13 12:16:22 +02:00
1 parent 3e15c1add1
commit 389d1bbf07
1 file changed
+1 -3
@@ -1149,12 +1149,10 @@ class VirtualMachine < Template
# @return String vmware ref
def clone_vm(drv_action)
@vi_client = vi_client
vcenter_name = get_vcenter_name
vc_template_ref = drv_action['USER_TEMPLATE/VCENTER_TEMPLATE_REF']
vc_template = RbVmomi::VIM::VirtualMachine(vi_client.vim, vc_template_ref)
vc_template = RbVmomi::VIM::VirtualMachine(@vi_client.vim, vc_template_ref)
ds = get_ds