Only wrap IdentityFile in quotes if it contains spaces [GH-1682]

This commit is contained in:
Mitchell Hashimoto 2013-07-19 23:57:10 -04:00
parent f4c36795df
commit 7c61931142
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,8 @@ BUG FIXES:
- All provisioners only output newlines when the provisioner sends a
newline. This results in the output looking a lot nicer.
- Sharing folders works properly if ".profile" contains an echo. [GH-1677]
- `vagrant ssh-config` IdentityFile is only wrapped in quotes if it
contains a space. [GH-1682]
## 1.2.4 (July 16, 2013)

View File

@ -5,7 +5,11 @@ Host <%= host_key %>
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
<% if private_key_path.include?(" ") -%>
IdentityFile "<%= private_key_path %>"
<% else -%>
IdentityFile <%= private_key_path %>
<% end -%>
IdentitiesOnly yes
LogLevel FATAL
<% if forward_agent -%>