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

This commit is contained in:
Alejandro Huertas Herrero authored and GitHub committed 2021-04-15 16:04:53 +02:00
1 parent 2661e199af
commit 168c4f79b3
1 file changed
+2 -2
+2 -2
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