From 7eb3be37de66b7f8e8be58493ffef1db50c9fb3d Mon Sep 17 00:00:00 2001 From: Michael Stucki Date: Tue, 25 Aug 2015 10:20:21 +0200 Subject: [PATCH] driver.rb: Check for correct bridge device name --- lib/vagrant-lxc/driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index 4683900..93e7465 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -181,7 +181,7 @@ module Vagrant def bridge_exists?(bridge_name) @logger.info "Checking whether bridge #{bridge_name} exists" - brctl_output = `ip link | grep -q #{bridge_name}` + brctl_output = `ip link | egrep -q " #{bridge_name}:"` $?.to_i == 0 end