lib/inspec/dependencies/requirement.rb in inspec-4.1.4.preview vs lib/inspec/dependencies/requirement.rb in inspec-4.2.0.preview
- old
+ new
@@ -116,9 +116,10 @@
# load the profile for the requirement
def profile
return @profile unless @profile.nil?
opts = @opts.dup
opts[:backend] = @backend
+ opts[:runner_conf] = Inspec::Config.cached
if !@dependencies.nil? && !@dependencies.empty?
opts[:dependencies] = Inspec::DependencySet.from_array(@dependencies, @cwd, @cache, @backend)
end
opts[:profile_name] = @name
opts[:parent_profile] = @parent_profile