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 30d5d5fa67
commit 1a247de0b6

View file

@ -672,7 +672,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
data = json.loads(filtered_output) data = json.loads(filtered_output)
data['_ansible_parsed'] = True data['_ansible_parsed'] = True
if 'ansible_facts' in data and isinstance(data['ansible_facts'], dict): 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()) fact_keys = set(data['ansible_facts'].keys())
# first we add all of our magic variable names to the set of # first we add all of our magic variable names to the set of
# keys we want to remove from facts # keys we want to remove from facts