make sure etc group values in where clause are strings

Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
Dominik Richter 2015-08-02 20:49:55 -07:00
parent b72ba08c06
commit 61f5f95147

View file

@ -55,7 +55,7 @@ class EtcGroup < Serverspec::Type::File
conditions.each do |k,v| conditions.each do |k,v|
idx = fields[k.to_sym] idx = fields[k.to_sym]
next if idx.nil? next if idx.nil?
res = res.map{|x| x[idx] == v} res = res.map{|x| x[idx] == v.to_s}
end end
@entries = res @entries = res
self self