Fixed an issue locating puppet binary. Issue-6876

This commit is contained in:
gavioto20 2016-01-21 20:14:43 +01:00
parent 57afddc43b
commit d2e8086181
1 changed files with 2 additions and 2 deletions

View File

@ -154,9 +154,9 @@ module VagrantPlugins
# This is very platform dependent.
test_cmd = "sh -c 'command -v #{binary}'"
if windows?
test_cmd = "where #{binary}"
test_cmd = "where.exe #{binary}"
if @config.binary_path
test_cmd = "where \"#{@config.binary_path}:#{binary}\""
test_cmd = "where.exe \"#{@config.binary_path}:#{binary}\""
end
end