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