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:
parent
204fb068d3
commit
d69135897d
@ -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