core: Environment#cwd should expand path to full path

This commit is contained in:
Mitchell Hashimoto 2014-05-05 21:17:48 -07:00
parent 2e9e40c82a
commit bc4d91fb73
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ module Vagrant
if !opts[:cwd].directory?
raise Errors::EnvironmentNonExistentCWD, cwd: opts[:cwd].to_s
end
opts[:cwd] = opts[:cwd].expand_path
# Set the default ui class
opts[:ui_class] ||= UI::Silent