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

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

This commit is contained in:
Alejandro Huertas Herrero 2021-04-21 17:51:26 +02:00 committed by GitHub
parent 204fb068d3
commit d69135897d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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