mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
Adjust vi_client in clone_vm
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user