mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Fix bug listing specific objects in one_helper
This commit is contained in:
parent
b1d2f8e8e8
commit
a0cdd4f525
@ -482,9 +482,10 @@ EOT
|
||||
array=pool.get_hash
|
||||
return -1, array.message if OpenNebula.is_error?(array)
|
||||
|
||||
if options[:ids]
|
||||
rname=self.class.rname
|
||||
array["#{rname}_POOL"][rname].reject! do |element|
|
||||
rname=self.class.rname
|
||||
elements=array["#{rname}_POOL"][rname]
|
||||
if options[:ids] && elements
|
||||
elements.reject! do |element|
|
||||
!options[:ids].include?(element['ID'].to_i)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user