F #3064: fix bug in Packet IPAM unregister (#3724)

This commit is contained in:
Alejandro Huertas Herrero authored and Ruben S. Montero committed 2019-09-18 10:03:55 +02:00
1 parent d45bd83b7c
commit 7598dc4bb4
1 file changed
+4 -2
@@ -94,8 +94,10 @@ require 'opennebula'
data = Nokogiri::XML(Base64.decode64(STDIN.read))
packet = Packet::Client.new
packet.auth_token = data.xpath('//AR/PACKET_TOKEN').text
ar_token = data.xpath('//AR/PACKET_TOKEN').text
packet = Packet::Client.new
packet.auth_token = ar_token
ip = Packet::Ip.new
ip.project_id = data.xpath('//AR/PACKET_PROJECT').text