Convert host path to string to catch other errors for SF configuration

This commit is contained in:
Mitchell Hashimoto 2010-09-05 11:41:59 -07:00
parent 23c08f2daa
commit 88639d16d0
1 changed files with 1 additions and 1 deletions

View File

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