pass options hash minus target key

Signed-off-by: Jeremy J. Miller <jm@chef.io>
This commit is contained in:
Jeremy J. Miller 2017-04-11 14:39:46 -04:00
parent 8c2aa716ca
commit c73417e0ae

View file

@ -89,7 +89,7 @@ module Inspec
@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