From d56cf55a89312d76b3f68cb23eb0ee3cd2a4f0f9 Mon Sep 17 00:00:00 2001 From: Gilles Cornu Date: Fri, 21 Oct 2016 16:38:02 +0200 Subject: [PATCH] provisioners/ansible_local: Use quotes for path checking Without this fix, the ansible_local provisioner fails to check the existence of a filesystem path that contains a blank/space character. --- plugins/provisioners/ansible/provisioner/guest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/ansible/provisioner/guest.rb b/plugins/provisioners/ansible/provisioner/guest.rb index 0d165db7e..2cdbe3004 100644 --- a/plugins/provisioners/ansible/provisioner/guest.rb +++ b/plugins/provisioners/ansible/provisioner/guest.rb @@ -156,7 +156,7 @@ module VagrantPlugins # and error if it doesn't exist. remote_path = Helpers::expand_path_in_unix_style(path, config.provisioning_path) - command = "test #{test_args} #{remote_path}" + command = "test #{test_args} '#{remote_path}'" @machine.communicate.execute( command,