From f3dbc24a22e9d00282a2233a13d5925a3c1fcfbe Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Fri, 15 Jul 2022 11:25:50 -0500 Subject: [PATCH] Band-aid to prevent help subcommand from erroring The code running in the help subcommand relies on Command plugins being returned from the manager with their options hash. Stubbing in a blank hash prevents the command from crashing What we really need is for CommandOptions to be modeled and passed through from Go to Ruby so :primary subcommands can be displayed, but that can be a follow-on task from this quick fix. --- lib/vagrant/plugin/remote/manager.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/plugin/remote/manager.rb b/lib/vagrant/plugin/remote/manager.rb index e0883fe3a..d7c92008d 100644 --- a/lib/vagrant/plugin/remote/manager.rb +++ b/lib/vagrant/plugin/remote/manager.rb @@ -181,7 +181,8 @@ module Vagrant sf_class.plugin_name = plg[:name] sf_class.type = plg[:type] result.register(plg[:name].to_sym) do - [proc{sf_class}] + # TODO(phinze): wire through CommandOptions and return them here + [proc{sf_class}, {}] end end end