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

Fix for vCenter VM poll

This commit is contained in:
Tino Vazquez 2016-04-26 19:56:37 +02:00
parent 11ec5378e7
commit 2382970da5

View File

@ -35,9 +35,10 @@ host = ARGV[1]
host_id = VCenterDriver::VIClient.translate_hostname(host)
vi_client = VCenterDriver::VIClient.new host_id
host = VCenterDriver::VCenterHost.new vi_client
vm = vi_client.find_vm_template(deploy_id)
vm = VCenterDriver::VCenterVm.new(vi_client, vm)
vm.monitor
vm.monitor(host)
puts vm.info