From a327eadd5f395194a2be401985895c577b2abd5b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 17 Dec 2011 11:54:21 -0800 Subject: [PATCH] Fix a nomethoderror on a nil --- lib/vagrant/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/cli.rb b/lib/vagrant/cli.rb index 68b2c8422..09a5597d5 100644 --- a/lib/vagrant/cli.rb +++ b/lib/vagrant/cli.rb @@ -30,7 +30,7 @@ module Vagrant # If we reached this far then we must have a subcommand. If not, # then we also just print the help and exit. - command_class = Vagrant.commands.get(@sub_command.to_sym) + command_class = Vagrant.commands.get(@sub_command.to_sym) if @sub_command return help if !command_class || !@sub_command @logger.debug("Invoking command class: #{command_class} #{@sub_args.inspect}")