Merge pull request #657 from chef/dr/filter-each

be descriptive on shadow.entries
This commit is contained in:
Christoph Hartmann 2016-04-17 23:37:39 -04:00
commit a40c6735ec

View file

@ -67,7 +67,11 @@ module Inspec::Resources
end
def entries
@lines.map { |line| Shadow.new(@path, content: line, filters: @filters) }
@lines.map do |line|
params = parse_shadow_line(line)
Shadow.new(@path, content: line,
filters: "#{@filters} on entry user=#{params['user']}")
end
end
def users(name = nil)