Include key path flag when calling script

This commit is contained in:
Chris Roberts 2018-06-12 16:20:49 -07:00
parent 16bcc1d874
commit ae8e25aabc
1 changed files with 1 additions and 1 deletions

View File

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