From 78b9a11ccf359a5db9d4277ae88548a13d411340 Mon Sep 17 00:00:00 2001 From: faust64 Date: Mon, 21 Apr 2014 19:44:47 +0200 Subject: [PATCH] Update facts.py Fixes #7093 --devel --- lib/ansible/module_utils/facts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index cc21ccc031c..dee86ac9761 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -1721,7 +1721,9 @@ class GenericBsdIfconfigNetwork(Network): if line: 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) interfaces[ current_if['device'] ] = current_if elif words[0].startswith('options='):