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:
parent
95a5a1dbfe
commit
2aa57d210e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user