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

B #5343: fix minor bug in one_helper (#1169)

(cherry picked from commit 2c600e9936266d041f19c3f235e35354d40fb0fe)
This commit is contained in:
Alejandro Huertas Herrero 2021-04-29 18:32:30 +02:00 committed by Ruben S. Montero
parent 727959b922
commit 7b4c62ea39
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -710,8 +710,8 @@ EOT
elements, hash = print_page(pool, options)
if options[:ids] && elements
arr = [hash[pool.pool_name][pool.element_name]].flatten
arr.reject! do |element|
hash = [hash[pool.pool_name][pool.element_name]].flatten
hash.reject! do |element|
!options[:ids].include?(element['ID'].to_i)
end
end