From 5ba4cf0363a8d73ea8d9f4c46ead57e53ab75114 Mon Sep 17 00:00:00 2001 From: sophia Date: Thu, 9 Dec 2021 17:30:41 -0600 Subject: [PATCH] Get communicator from remote machine --- plugins/commands/serve/client/target/machine.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/commands/serve/client/target/machine.rb b/plugins/commands/serve/client/target/machine.rb index 182e1bbeb..a0f8957c2 100644 --- a/plugins/commands/serve/client/target/machine.rb +++ b/plugins/commands/serve/client/target/machine.rb @@ -34,6 +34,13 @@ module VagrantPlugins def connection_info end + # @return [Communicator] machine communicator + def communicate + logger.debug("Getting guest from remote machine") + c = client.communicate(Empty.new) + Communicator.load(c, broker: broker) + end + # @return [Guest] machine guest # TODO: This needs to be loaded properly def guest