SSH communicator: check_key_perms should be a Pathname
This commit is contained in:
parent
b9fc6068fb
commit
202cfebc24
|
@ -1,4 +1,5 @@
|
||||||
require 'logger'
|
require 'logger'
|
||||||
|
require 'pathname'
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
|
|
||||||
|
@ -150,7 +151,7 @@ module VagrantPlugins
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check that the private key permissions are valid
|
# 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
|
# Connect to SSH, giving it a few tries
|
||||||
connection = nil
|
connection = nil
|
||||||
|
|
Loading…
Reference in New Issue