From 88639d16d0f9178175a1e0a6275729447abfd6a1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 5 Sep 2010 11:41:59 -0700 Subject: [PATCH] Convert host path to string to catch other errors for SF configuration --- lib/vagrant/config/vm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/config/vm.rb b/lib/vagrant/config/vm.rb index f54aef258..dd73adcd0 100644 --- a/lib/vagrant/config/vm.rb +++ b/lib/vagrant/config/vm.rb @@ -97,7 +97,7 @@ module Vagrant def validate(errors) shared_folders.each do |name, options| - if !File.directory?(File.expand_path(options[:hostpath], env.root_path)) + if !File.directory?(File.expand_path(options[:hostpath].to_s, env.root_path)) errors.add("vagrant.config.vm.shared_folder_hostpath_missing", :name => name, :path => options[:hostpath])