mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
M #-: Fix packet poll (#4606)
This commit is contained in:
parent
213dada892
commit
277cbf65bd
@ -39,11 +39,13 @@ require 'opennebula'
|
||||
|
||||
deploy_id = ARGV[0]
|
||||
host = ARGV[1]
|
||||
id = ARGV[2]
|
||||
|
||||
begin
|
||||
packet_drv = PacketDriver.new(host)
|
||||
packet_drv.poll(deploy_id)
|
||||
packet_drv = PacketDriver.new(host, id)
|
||||
monitor = packet_drv.poll(id, deploy_id).first
|
||||
|
||||
puts Base64.decode64(monitor[:monitor])
|
||||
rescue Exception => e
|
||||
STDERR.puts error_message(<<EOT)
|
||||
Cannot poll info for Packet host #{host} due to "#{e.message}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user