From ae8e25aabcb09722e5aab445d0e6d869e05ad46d Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 12 Jun 2018 16:20:49 -0700 Subject: [PATCH] Include key path flag when calling script --- plugins/hosts/windows/cap/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hosts/windows/cap/ssh.rb b/plugins/hosts/windows/cap/ssh.rb index 8cf0129f7..63415bcb5 100644 --- a/plugins/hosts/windows/cap/ssh.rb +++ b/plugins/hosts/windows/cap/ssh.rb @@ -10,7 +10,7 @@ module VagrantPlugins def self.set_ssh_key_permissions(env, key_path) script_path = Host.scripts_path.join("set_ssh_key_permissions.ps1") result = Vagrant::Util::PowerShell.execute( - script_path.to_s, key_path.to_s, + script_path.to_s, "-KeyPath", key_path.to_s, module_path: Host.modules_path.to_s ) if result.exit_code != 0