From 3682a8279d6fd03a18f1eb6a3ab36fb3654becca Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Sun, 2 Aug 2015 18:49:05 -0700 Subject: [PATCH] make sure to get conditions as symbols Signed-off-by: Dominik Richter --- lib/resources/etc_group.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resources/etc_group.rb b/lib/resources/etc_group.rb index 9d84017c2..ff93ea04d 100644 --- a/lib/resources/etc_group.rb +++ b/lib/resources/etc_group.rb @@ -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