Fix a nomethoderror on a nil
This commit is contained in:
parent
c5ec4b4a30
commit
a327eadd5f
|
@ -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}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue