Fixed issue 4161
Wrong varaible name was used to try and delete the existing Vagrantfile causing an error.
This commit is contained in:
parent
bfe50e298e
commit
99a537605c
|
@ -43,7 +43,7 @@ module VagrantPlugins
|
||||||
save_path = nil
|
save_path = nil
|
||||||
if options[:output] != "-"
|
if options[:output] != "-"
|
||||||
save_path = Pathname.new(options[:output]).expand_path(@env.cwd)
|
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?
|
raise Vagrant::Errors::VagrantfileExistsError if save_path.exist?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue