SSH communicator: check_key_perms should be a Pathname

This commit is contained in:
Mitchell Hashimoto 2013-02-04 21:06:28 -08:00
parent b9fc6068fb
commit 202cfebc24
1 changed files with 2 additions and 1 deletions

View File

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