provider: Use full which
path when checking whether the lxc-create
command is available
Fixes GH-322
This commit is contained in:
parent
01d53a783c
commit
758703ea6b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue