[DRE-commits] [vagrant-libvirt] 78/163: Fix port forwarding ssh process cleanup
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Apr 24 13:57:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag 0.0.26
in repository vagrant-libvirt.
commit 803719d3f6a5526f7ea47b62af317156916e1e07
Author: Brian Pitts <brian at polibyte.com>
Date: Sat Nov 1 18:54:37 2014 -0500
Fix port forwarding ssh process cleanup
The presence of quotes in the command to spawn caused ruby to run it via
a shell instead of running it directly. This broke our code for
killing the ssh processes when the VM is halted.
Closes #265
---
lib/vagrant-libvirt/action/forward_ports.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/vagrant-libvirt/action/forward_ports.rb b/lib/vagrant-libvirt/action/forward_ports.rb
index 5fa86f0..27d4419 100644
--- a/lib/vagrant-libvirt/action/forward_ports.rb
+++ b/lib/vagrant-libvirt/action/forward_ports.rb
@@ -83,7 +83,8 @@ module VagrantPlugins
gateway_ports)
ssh_info = machine.ssh_info
params = %W(
- "-L #{host_ip}:#{host_port}:#{guest_ip}:#{guest_port}"
+ -L
+ #{host_ip}:#{host_port}:#{guest_ip}:#{guest_port}
-N
#{ssh_info[:host]}
).join(' ')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git
More information about the Pkg-ruby-extras-commits
mailing list