Default host class is the base class

This commit is contained in:
Mitchell Hashimoto 2012-01-07 13:13:17 -08:00
parent d9f5cbce3e
commit 75539c2abe
1 changed files with 4 additions and 0 deletions

View File

@ -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