mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 14:03:20 +09:00
B #: fix onegate vnet bug (#399)
This commit is contained in:
1 parent
3a51fed730
commit
2cd2d7d8cd
1 file changed
+1
-1
@@ -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']}]"
|
||||
|
||||
Reference in new issue
Block a user