From 2cd2d7d8cd284063393356819bc2e95dedf8b4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Fri, 6 Nov 2020 11:39:10 +0100 Subject: [PATCH] B #: fix onegate vnet bug (#399) --- src/onegate/onegate-server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onegate/onegate-server.rb b/src/onegate/onegate-server.rb index e234475617..b4b1554cba 100644 --- a/src/onegate/onegate-server.rb +++ b/src/onegate/onegate-server.rb @@ -784,7 +784,7 @@ def build_vnet_hash(vnet, client, extended) # rubocop:enable Style/ArrayCoercion leases.each do |lease| - next if lease['VM'].nil? + next if lease['VM'].nil? || Integer(lease['VM']) < 0 # Get the corresponding VM from pool xpath = "/VM_POOL/VM[ID=#{lease['VM']}]"