mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
This needed to be a flat_map because :profiles was an array.
Entirely on me. Pushing this through to rectify my mistake in review. Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
f1654c02d2
commit
62890e4809
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ module Inspec::Reporters
|
|||
|
||||
def all_unique_controls
|
||||
@unique_controls ||= begin
|
||||
run_data[:profiles].map { |profile|
|
||||
run_data[:profiles].flat_map { |profile|
|
||||
profile[:controls]
|
||||
}.uniq
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue