feature #1977: Get poll remote to use the new vi_driver

This commit is contained in:
Tino Vazquez committed 2013-05-16 19:09:10 +02:00
1 parent c87df28a02
commit d78e7a3fa1
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -28,11 +28,11 @@ end
$: << RUBY_LIB_LOCATION
$: << File.dirname(__FILE__)
require 'vmware_driver'
require 'vi_driver'
deploy_id = ARGV[0]
host = ARGV[1]
vmware_drv = VMwareDriver.new(host)
vi_drv = VIDriver.new(host)
puts vmware_drv.poll(deploy_id)
puts vi_drv.poll(deploy_id)
+1 -1
View File
@@ -75,7 +75,7 @@ class VIDriver
# -------------------------------------------------------------------------#
# Poll the monitoring information for a VM #
# -------------------------------------------------------------------------#
def poll_vm(deploy_id)
def poll(deploy_id)
begin
vm = get_vm(deploy_id)[:vm]
str_info = get_vm_info(vm)