provisioners/chef: actually use command -v

This commit is contained in:
Mitchell Hashimoto 2015-02-24 10:12:25 -08:00
parent c1e2d36090
commit 713be4c5b9
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ module VagrantPlugins
# Checks for the existence of chef binary and error if it
# doesn't exist.
@machine.communicate.sudo(
"sh -c 'which #{binary}'",
"sh -c 'command -v #{binary}'",
error_class: ChefError,
error_key: :chef_not_detected,
binary: binary,