From 9b48684226235db914315c2e67393c93f9bf9096 Mon Sep 17 00:00:00 2001 From: sophia Date: Wed, 21 Sep 2022 11:09:56 -0400 Subject: [PATCH] Ensure last line from extracting the SSH_AUTH_SOCK is not nil --- plugins/communicators/ssh/communicator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index d5e5e6658..fd15804c6 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -645,7 +645,7 @@ module VagrantPlugins if auth_socket != "" # Make sure we only read the last line which should be # the $SSH_AUTH_SOCK env var we printed. - auth_socket = auth_socket.split("\n").last.chomp + auth_socket = auth_socket.split("\n").last.to_s.chomp end if auth_socket == ""