mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
feature #1977: Get poll remote to use the new vi_driver
This commit is contained in:
1 parent
c87df28a02
commit
d78e7a3fa1
2 files changed
+4
-4
No files matched your search
@@ -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)
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user