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

F #4913: Vnc info is added when a wild VM is imported F#5074

This commit is contained in:
mcabrerizo 2017-04-17 16:53:32 +02:00
parent cd70c16d38
commit 7d211b2d98

View File

@ -39,6 +39,13 @@ def self.import_wild(host_id, vm_ref, one_vm, template)
vcenter_vm.reference_imported_disks(vm_ref)
vcenter_vm.reference_imported_nics
# Set vnc configuration F#5074
extraconfig = []
extraconfig += vcenter_vm.extraconfig_vnc
spec_hash = { :extraConfig => extraconfig }
spec = RbVmomi::VIM.VirtualMachineConfigSpec(spec_hash)
vcenter_vm.item.ReconfigVM_Task(:spec => spec).wait_for_completion
return one_vm.id
rescue Exception => e