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
parent a013cdc747
commit e7afd3d378
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)