Merge pull request #4162 from mitchellh/fix-issue-4161
Fixed issue 4161
This commit is contained in:
commit
edb36abcc0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue