allow pesky 'bridge' facts to bypass facts filter (#28401)

* allow pesky 'bridge' facts to bypass facts filter

fixes #27729, #23577

* I ate pepe
This commit is contained in:
Brian Coca 2017-08-29 09:47:40 -04:00 committed by GitHub
parent 40907d7db2
commit c06f8a3f9b
2 changed files with 11 additions and 9 deletions

View file

@ -780,7 +780,8 @@ class ActionBase(with_metaclass(ABCMeta, object)):
conn_name = os.path.splitext(os.path.basename(conn_path))[0]
re_key = re.compile('^ansible_%s_' % conn_name)
for fact_key in fact_keys:
if re_key.match(fact_key):
# exception for lvm tech, whic normally returns asnible_x_bridge facts that get filterd out (docker,lxc, etc)
if re_key.match(fact_key) and not fact_key.endswith(('_bridge', '_gwbridge')):
remove_keys.add(fact_key)
except AttributeError:
pass