remove rsync path from returned facts

(cherry picked from commit 7c960d440f)
This commit is contained in:
Brian Coca 2016-11-17 13:20:46 -05:00
parent c3fbe526ca
commit 78e47b4bbd

View file

@ -688,7 +688,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
data = json.loads(self._filter_non_json_lines(res.get('stdout', u'')))
data['_ansible_parsed'] = True
if 'ansible_facts' in data and isinstance(data['ansible_facts'], dict):
remove_keys = set()
remove_keys = set(['ansible_rsync_path'])
fact_keys = set(data['ansible_facts'].keys())
# first we add all of our magic variable names to the set of
# keys we want to remove from facts