M #-: Fix packet poll (#4606)

This commit is contained in:
Jan Orel authored and GitHub committed 2020-04-27 14:06:54 +02:00
1 parent 213dada892
commit 277cbf65bd
1 file changed
+4 -2
+4 -2
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}"