From 75539c2abef8c5cc1e9df05b30bc4aaf26a8c9cd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 7 Jan 2012 13:13:17 -0800 Subject: [PATCH] Default host class is the base class --- lib/vagrant/environment.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 0635f755a..8cc44f4d0 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -168,6 +168,10 @@ module Vagrant host_klass = config.global.vagrant.host host_klass = Hosts.detect(Vagrant.hosts) if host_klass.nil? || host_klass == :detect host_klass = Vagrant.hosts.get(host_klass) if host_klass.is_a?(Symbol) + + # If no host class is detected, we use the base class. + host_klass ||= Hosts::Base + @host ||= host_klass.new(@ui) end