Skip to content

Commit

Permalink
Merge pull request #12398 from pszlazak/patch-1
Browse files Browse the repository at this point in the history
Escape spaces in SSH key_path
  • Loading branch information
chrisroberts committed Aug 13, 2021
2 parents 1d4d2b8 + ba2c195 commit 406c473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/hosts/windows/cap/ssh.rb
Expand Up @@ -10,7 +10,7 @@ class SSH
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, "-KeyPath", key_path.to_s,
script_path.to_s, "-KeyPath", key_path.to_s.gsub(' ', '` '),
module_path: Host.modules_path.to_s
)
if result.exit_code != 0
Expand Down

0 comments on commit 406c473

Please sign in to comment.