1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

Fix bug when IDs are specified in CLI helper

This commit is contained in:
Javi Fontan 2014-03-10 19:22:08 +01:00
parent 0e3a1d5179
commit 3d152d64c6

View File

@ -483,8 +483,9 @@ EOT
return -1, array.message if OpenNebula.is_error?(array)
if options[:ids]
array=array.select do |element|
options[:ids].include? element['ID'].to_i
rname=self.class.rname
array["#{rname}_POOL"][rname].reject! do |element|
!options[:ids].include?(element['ID'].to_i)
end
end