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:
parent
0e3a1d5179
commit
3d152d64c6
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user