Fixing up fact cachine related unit tests

This commit is contained in:
Matthew Jones
2016-11-18 10:23:07 -05:00
parent 3b07d9745d
commit 35b9786e06
3 changed files with 11 additions and 45 deletions

View File

@@ -53,7 +53,7 @@ class CacheModule(BaseCacheModule):
self.connection = Connection(self.callback_connection)
self.exchange = Exchange(self.callback_queue, type='direct')
self.producer = Producer(self.connection)
def filter_ansible_facts(self, facts):
return dict((k, facts[k]) for k in facts.keys() if k.startswith('ansible_'))