make sure to get conditions as symbols

Signed-off-by: Dominik Richter <dominik@vulcanosec.com>
This commit is contained in:
Dominik Richter 2015-08-02 18:49:05 -07:00
parent e0b0b52af3
commit 3682a8279d

View file

@ -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