Fix for vCenter VM poll

This commit is contained in:
Tino Vazquez committed 2016-04-26 19:56:37 +02:00
1 parent 11ec5378e7
commit 2382970da5
1 file changed
+2 -1
+2 -1
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