mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
Merge pull request #657 from chef/dr/filter-each
be descriptive on shadow.entries
This commit is contained in:
commit
a40c6735ec
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue