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

M #-: fix minor bug in oneimage show (#1124)

(cherry picked from commit d69135897d88ed5d718246203bb0595ab10e2682)
This commit is contained in:
Alejandro Huertas Herrero 2021-04-21 17:51:26 +02:00 committed by Ruben S. Montero
parent 95a5a1dbfe
commit 2aa57d210e
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

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