From 83d5dd6d26611229e17dcfbf9f82effe7b4234a8 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 17 May 2021 16:47:57 -0700 Subject: [PATCH] Pass current broker instance to terminal when loading --- plugins/commands/serve/client/terminal.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/commands/serve/client/terminal.rb b/plugins/commands/serve/client/terminal.rb index 65da23b75..9da376471 100644 --- a/plugins/commands/serve/client/terminal.rb +++ b/plugins/commands/serve/client/terminal.rb @@ -7,9 +7,9 @@ module VagrantPlugins @client = SDK::TerminalUIService::Stub.new(server_endpoint, :this_channel_is_insecure) end - def self.load(raw_terminal) + def self.load(raw_terminal, broker:) t = SDK::Args::TerminalUI.decode(raw_terminal) - conn = Broker.instance.dial(t.stream_id) + conn = broker.dial(t.stream_id) self.new(conn.to_s) end