1
0
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:
Javi Fontan 2014-03-26 19:00:18 +01:00
parent b1d2f8e8e8
commit a0cdd4f525

View File

@ -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