Search for macaddresses more stringently (#40901)

* Search for macaddresses more stringently

Fixes #40829
This commit is contained in:
Nathaniel Case 2018-05-31 10:45:17 -04:00 committed by GitHub
commit e7afd3d378
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 75 additions and 1 deletions

View file

@ -379,7 +379,7 @@ class Interfaces(FactsBase):
return match.group(1)
def parse_macaddress(self, data):
match = re.search(r'address is (\S+)', data)
match = re.search(r'Hardware is (?:.*), address is (\S+)', data)
if match:
return match.group(1)