provider: Use full which path when checking whether the lxc-create command is available

Fixes GH-322
This commit is contained in:
Fabio Rehm 2015-01-08 02:26:23 -02:00
parent 01d53a783c
commit 758703ea6b

View file

@ -36,7 +36,7 @@ module Vagrant
def ensure_lxc_installed!
begin
sudo_wrapper.run("which", "lxc-create")
sudo_wrapper.run("/usr/bin/which", "lxc-create")
rescue Vagrant::LXC::Errors::ExecuteError
raise Errors::LxcNotInstalled
end