Fix junk output for ssh-config. [closes GH-189]

This commit is contained in:
Mitchell Hashimoto 2010-10-13 18:36:13 -07:00
parent 6337cefb8b
commit dcb06a0e43
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
## 0.6.6 (unreleased)
- Fix "junk" output for ssh-config. [GH-189]
- Fix port collision handling with greater than two VMs. [GH-185]
- Fix potential infinite loop with root path if bad CWD is given to environment.

View File

@ -9,12 +9,12 @@ module Vagrant
vm = target_vms.first
raise Errors::VMNotCreatedError.new if !vm.created?
env.ui.info(Util::TemplateRenderer.render("ssh_config", {
$stdout.puts(Util::TemplateRenderer.render("ssh_config", {
:host_key => options[:host] || "vagrant",
:ssh_user => vm.env.config.ssh.username,
:ssh_port => vm.ssh.port,
:private_key_path => vm.env.config.ssh.private_key_path
}), :prefix => false)
}))
end
end
end