From 758703ea6b3cc1661ec99ebddd85a9424bea13ad Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Thu, 8 Jan 2015 02:26:23 -0200 Subject: [PATCH] provider: Use full `which` path when checking whether the `lxc-create` command is available Fixes GH-322 --- lib/vagrant-lxc/provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/provider.rb b/lib/vagrant-lxc/provider.rb index dead6ab..ab56279 100644 --- a/lib/vagrant-lxc/provider.rb +++ b/lib/vagrant-lxc/provider.rb @@ -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