lib/inspec/runner.rb in inspec-2.2.78 vs lib/inspec/runner.rb in inspec-2.2.101
- old
+ new
@@ -50,11 +50,11 @@
require 'inspec/runner_rspec'
RunnerRspec.new(@conf)
end
# list of profile attributes
- @attributes = []
+ @attributes = {}
load_attributes(@conf)
configure_transport
end
@@ -86,10 +86,10 @@
profile_context.dependencies.list.values.each do |requirement|
@test_collector.add_profile(requirement.profile)
end
- @attributes |= profile.runner_context.attributes
+ @attributes = profile.runner_context.attributes if @attributes.empty?
all_controls += profile.collect_tests
end
all_controls.each do |rule|
register_rule(rule) unless rule.nil?