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:
parent
11ec5378e7
commit
2382970da5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user