diff --git a/plugins/commands/serve/service/command_service.rb b/plugins/commands/serve/service/command_service.rb index fe450f6e0..eb93b9e0d 100644 --- a/plugins/commands/serve/service/command_service.rb +++ b/plugins/commands/serve/service/command_service.rb @@ -54,13 +54,14 @@ module VagrantPlugins with_info(ctx) do |info| plugin_name = info.plugin_name - ui, env, arguments = mapper.funcspec_map(req.spec, expect: [Vagrant::UI::Remote, Vagrant::Environment, SDK::Command::Arguments]) - - - # ui = Vagrant::UI::Remote.new(ui_client) - # env = Vagrant::Environment.new( - # {ui: ui, client: env_client} - # ) + _, env, arguments = mapper.funcspec_map( + req.spec, + expect: [ + Vagrant::UI::Remote, + Vagrant::Environment, + SDK::Command::Arguments + ] + ) plugin = Vagrant::Plugin::V2::Plugin.manager.commands[plugin_name.to_sym].to_a.first if !plugin