diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index 14b5bc58a..f4d152002 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -570,7 +570,7 @@ module VagrantPlugins raise Vagrant::Errors::SSHInvalidShell.new end - data = stdout[/.*#{PTY_DELIM_START}(.*?)#{PTY_DELIM_END}/m, 1] + data = pty_stdout[/.*#{PTY_DELIM_START}(.*?)#{PTY_DELIM_END}/m, 1] @logger.debug("PTY stdout parsed: #{data}") yield :stdout, data if block_given? end