match hwaddr lines with varying spaces

This commit is contained in:
Cam Cope 2014-02-19 18:25:45 -05:00
parent 44f00bd7ed
commit b5c7a50a74

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