Merge pull request #226 from ccope/flexible-mac-regex

Flexible mac address regex
This commit is contained in:
Fabio Rehm 2014-02-19 23:24:18 -03:00
commit 11cebb5bf7

View file

@ -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