Convert host path to string to catch other errors for SF configuration
This commit is contained in:
parent
23c08f2daa
commit
88639d16d0
|
@ -97,7 +97,7 @@ module Vagrant
|
||||||
|
|
||||||
def validate(errors)
|
def validate(errors)
|
||||||
shared_folders.each do |name, options|
|
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",
|
errors.add("vagrant.config.vm.shared_folder_hostpath_missing",
|
||||||
:name => name,
|
:name => name,
|
||||||
:path => options[:hostpath])
|
:path => options[:hostpath])
|
||||||
|
|
Loading…
Reference in New Issue