1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

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

This commit is contained in:
Alejandro Huertas Herrero 2021-04-29 18:32:30 +02:00 committed by GitHub
parent 76bc1813f0
commit 2c600e9936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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