From 202cfebc242a265426d04f1f6a9829f57e325cfb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 4 Feb 2013 21:06:28 -0800 Subject: [PATCH] SSH communicator: check_key_perms should be a Pathname --- plugins/communicators/ssh/communicator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/communicators/ssh/communicator.rb b/plugins/communicators/ssh/communicator.rb index 40d11ca65..f437eca39 100644 --- a/plugins/communicators/ssh/communicator.rb +++ b/plugins/communicators/ssh/communicator.rb @@ -1,4 +1,5 @@ require 'logger' +require 'pathname' require 'stringio' require 'timeout' @@ -150,7 +151,7 @@ module VagrantPlugins } # Check that the private key permissions are valid - Vagrant::Util::SSH.check_key_permissions(ssh_info[:private_key_path]) + Vagrant::Util::SSH.check_key_permissions(Pathname.new(ssh_info[:private_key_path])) # Connect to SSH, giving it a few tries connection = nil