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.
This commit is contained in:
Gilles Cornu 2016-10-21 16:38:02 +02:00
parent 432f79339c
commit d56cf55a89
No known key found for this signature in database
GPG Key ID: F6BC2CF7E1FE8FFF
1 changed files with 1 additions and 1 deletions

View File

@ -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,