Merge pull request #12909 from soapy1/communicator-no-method

Ensure last line from extracting the SSH_AUTH_SOCK is not nil
This commit is contained in:
Sophia Castellarin 2022-09-21 16:09:20 -04:00 committed by GitHub
commit 0aeaab8762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 == ""