now that invocation is only async again, no need to sanitize

This commit is contained in:
Brian Coca 2015-07-15 10:40:37 -04:00
parent 2d870b7112
commit b76cb8f655
3 changed files with 3 additions and 20 deletions

View file

@ -21,8 +21,6 @@ __metaclass__ = type
import json
from ansible import constants as C
__all__ = ["CallbackBase"]
@ -45,18 +43,8 @@ class CallbackBase:
version = getattr(self, 'CALLBACK_VERSION', 'unknwon')
self._display.vvvv('Loaded callback %s of type %s, v%s' % (name, ctype, version))
def _dump_results(self, result, sanitize=True, indent=4, sort_keys=True):
if sanitize:
res = self._sanitize_result(result)
else:
res = result
return json.dumps(res, indent=indent, ensure_ascii=False, sort_keys=sort_keys)
def _sanitize_result(self, result):
res = {}
for k in set(result.keys()).difference(C.RESULT_SANITIZE):
res[k] = result[k]
return res
def _dump_results(self, result, indent=4, sort_keys=True):
return json.dumps(result, indent=indent, ensure_ascii=False, sort_keys=sort_keys)
def set_connection_info(self, conn_info):
pass