diff --git a/lib/inspec/backend.rb b/lib/inspec/backend.rb index 7f103c02b..03f17839f 100644 --- a/lib/inspec/backend.rb +++ b/lib/inspec/backend.rb @@ -14,7 +14,7 @@ module Inspec # @return [TransportBackend] enriched transport instance def self.create(config) conf = Train.target_config(config) - name = conf[:backend] || :local + name = Train.validate_backend(conf) transport = Train.create(name, conf) if transport.nil? fail "Can't find transport backend '#{name}'."