mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
Fix for vCenter VM poll
This commit is contained in:
1 parent
11ec5378e7
commit
2382970da5
1 file changed
+2
-1
@@ -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
|
||||
Reference in new issue
Block a user