From b5c7a50a7422b8dab2c06d7f1bd9f8d1294636d6 Mon Sep 17 00:00:00 2001 From: Cam Cope Date: Wed, 19 Feb 2014 18:25:45 -0500 Subject: [PATCH] match hwaddr lines with varying spaces --- 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 dbedcfb..3c14554 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -40,7 +40,7 @@ module Vagrant end def mac_address - @mac_address ||= config_string.match(/^lxc\.network\.hwaddr\s+=\s+(.+)$/)[1] + @mac_address ||= config_string.match(/^lxc\.network\.hwaddr\s*+=\s*+(.+)$/)[1] end def config_string