mirror of
https://github.com/inspec/inspec
synced 2024-11-10 23:24:18 +00:00
make sure etc group values in where clause are strings
Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
parent
b72ba08c06
commit
61f5f95147
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class EtcGroup < Serverspec::Type::File
|
|||
conditions.each do |k,v|
|
||||
idx = fields[k.to_sym]
|
||||
next if idx.nil?
|
||||
res = res.map{|x| x[idx] == v}
|
||||
res = res.map{|x| x[idx] == v.to_s}
|
||||
end
|
||||
@entries = res
|
||||
self
|
||||
|
|
Loading…
Reference in a new issue