From a1d78edaf8891cdb6eb1f223d1fcade70a06a6c0 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilets Date: Mon, 19 Sep 2016 21:00:14 +0200 Subject: [PATCH] changes after review --- plugins/provisioners/ansible/provisioner/host.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/ansible/provisioner/host.rb b/plugins/provisioners/ansible/provisioner/host.rb index 7d298ffce..15842b7a1 100644 --- a/plugins/provisioners/ansible/provisioner/host.rb +++ b/plugins/provisioners/ansible/provisioner/host.rb @@ -234,7 +234,7 @@ module VagrantPlugins proxy_cmd += " exec nc %h %p 2>/dev/null" ssh_options << "-o ProxyCommand='#{ proxy_cmd }'" - elsif @machine.provider_name == :libvirt && @machine.provider_config.connect_via_ssh + elsif @machine.ssh_info[:proxy_command] && @machine.provider_config.connect_via_ssh proxy_cmd = @machine.ssh_info[:proxy_command] ssh_options << "-o ProxyCommand='#{ proxy_cmd }'" end