Merge pull request #4162 from mitchellh/fix-issue-4161

Fixed issue 4161
This commit is contained in:
Shawn Neal 2014-07-08 13:27:44 -07:00
commit edb36abcc0
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ module VagrantPlugins
save_path = nil
if options[:output] != "-"
save_path = Pathname.new(options[:output]).expand_path(@env.cwd)
save_file.delete if save_path.exist? && options[:force]
save_path.delete if save_path.exist? && options[:force]
raise Vagrant::Errors::VagrantfileExistsError if save_path.exist?
end