Merge pull request #226 from ccope/flexible-mac-regex
Flexible mac address regex
This commit is contained in:
commit
11cebb5bf7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue