Merge pull request #5487 from inspec/vasundhara/fix_depedent_control_errors

Fix  undefined method `+' for nil:NilClass\n\nProfile: - when using profile dependencies and require_controls
This commit is contained in:
Clinton Wolfe 2021-05-03 21:03:27 -04:00 committed by GitHub
commit 1e2b0e79c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -91,7 +91,7 @@ module Inspec
end
def all_controls
ret = @rules.values
ret = @rules.values.compact
ret += @control_subcontexts.map(&:all_rules).flatten
ret
end

View file

@ -0,0 +1,3 @@
require_controls 'profile_b' do
control 'profileb-2'
end