1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

B #: fix onegate vnet bug (#399)

(cherry picked from commit 2cd2d7d8cd284063393356819bc2e95dedf8b4d4)
This commit is contained in:
Christian González 2020-11-06 11:39:10 +01:00 committed by Ruben S. Montero
parent 415e138c8a
commit e877de5dc4
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

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