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!
|
def ensure_lxc_installed!
|
||||||
begin
|
begin
|
||||||
sudo_wrapper.run("which", "lxc-create")
|
sudo_wrapper.run("/usr/bin/which", "lxc-create")
|
||||||
rescue Vagrant::LXC::Errors::ExecuteError
|
rescue Vagrant::LXC::Errors::ExecuteError
|
||||||
raise Errors::LxcNotInstalled
|
raise Errors::LxcNotInstalled
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue