mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Search for macaddresses more stringently (#40901)
* Search for macaddresses more stringently Fixes #40829
This commit is contained in:
parent
a013cdc747
commit
e7afd3d378
6 changed files with 75 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue