From 99a537605cce4a69c2dd3b2a569cd70369972176 Mon Sep 17 00:00:00 2001 From: Shawn Neal Date: Tue, 8 Jul 2014 13:19:43 -0700 Subject: [PATCH] Fixed issue 4161 Wrong varaible name was used to try and delete the existing Vagrantfile causing an error. --- plugins/commands/init/command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands/init/command.rb b/plugins/commands/init/command.rb index 28abbc5c8..cdbfc8730 100644 --- a/plugins/commands/init/command.rb +++ b/plugins/commands/init/command.rb @@ -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