lib/inspec/dependencies/requirement.rb in inspec-2.2.78 vs lib/inspec/dependencies/requirement.rb in inspec-2.2.101
- old
+ new
@@ -119,11 +119,12 @@
opts = @opts.dup
opts[:backend] = @backend
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
@profile = Inspec::Profile.for_fetcher(fetcher, opts)
- @profile.parent_profile = @parent_profile
@profile
end
end
end