1
0
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:
Jan Orel 2020-04-27 14:06:54 +02:00 committed by GitHub
parent 213dada892
commit 277cbf65bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}"