1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #7099 from faust64/patch-2

Update facts.py
This commit is contained in:
James Cammarata 2014-04-21 12:48:41 -05:00
commit f1ce9abe0d

View file

@ -1721,7 +1721,9 @@ class GenericBsdIfconfigNetwork(Network):
if line: if line:
words = line.split() words = line.split()
if re.match('^\S', line) and len(words) > 3: if words[0] == 'pass':
continue
elif re.match('^\S', line) and len(words) > 3:
current_if = self.parse_interface_line(words) current_if = self.parse_interface_line(words)
interfaces[ current_if['device'] ] = current_if interfaces[ current_if['device'] ] = current_if
elif words[0].startswith('options='): elif words[0].startswith('options='):