mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
make sure to get conditions as symbols
Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
parent
e0b0b52af3
commit
3682a8279d
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class EtcGroup < Serverspec::Type::File
|
|||
}
|
||||
res = entries
|
||||
conditions.each do |k,v|
|
||||
idx = fields[k]
|
||||
idx = fields[k.to_sym]
|
||||
next if idx.nil?
|
||||
res = res.map{|x| x[idx] == v}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue