Merge pull request #5799 from inspec/nm/insecure-dependent

Fix for dependent profiles to run with --insecure
This commit is contained in:
Clinton Wolfe 2022-01-20 10:05:24 -05:00 committed by GitHub
commit 004b9a10e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,8 @@ module Inspec
end
def fetcher
@fetcher ||= Inspec::CachedFetcher.new(opts, @cache)
@runner_options ||= (Inspec::Config.cached || {})
@fetcher ||= Inspec::CachedFetcher.new(opts, @cache, @runner_options)
end
# load dependencies of the dependency