lib/inspec/profile.rb in inspec-1.19.2 vs lib/inspec/profile.rb in inspec-1.20.0

- old
+ new

@@ -87,10 +87,10 @@ @locked_dependencies = options[:dependencies] @controls = options[:controls] || [] @writable = options[:writable] || false @profile_id = options[:id] @cache = options[:cache] || Cache.new - @backend = options[:backend] || Inspec::Backend.create(options) + @backend = options[:backend] || Inspec::Backend.create(options.select { |k, _| k != 'target' }) @attr_values = options[:attributes] @source_reader = source_reader @tests_collected = false @libraries_loaded = false Metadata.finalize(@source_reader.metadata, @profile_id, options)