Fix bug when IDs are specified in CLI helper

This commit is contained in:
Javi Fontan committed 2014-03-10 19:23:01 +01:00
1 parent 0e3a1d5179
commit 3d152d64c6
1 file changed
+3 -2
+3 -2
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