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

B #5343: fix oneimage show output (#1111)

(cherry picked from commit 168c4f79b312b91d4dd6c9682cd9f4e49a32bbc9)
This commit is contained in:
Alejandro Huertas Herrero 2021-04-15 16:04:53 +02:00 committed by Ruben S. Montero
parent b587bf8b94
commit 7ae71e9384
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -707,10 +707,10 @@ EOT
return -1, rc.message if OpenNebula.is_error?(rc)
_, hash = print_page(pool, options)
elements, hash = print_page(pool, options)
if options[:ids] && elements
hash.reject! do |element|
hash[pool.pool_name][pool.element_name].reject! do |element|
!options[:ids].include?(element['ID'].to_i)
end
end