Merge "Add support for marking module results uninteresting" into feature/zuulv3

This commit is contained in:
Jenkins 2017-07-09 16:36:59 +00:00 committed by Gerrit Code Review
commit 2c414c1ca2
1 changed files with 7 additions and 0 deletions

View File

@ -252,6 +252,13 @@ class CallbackModule(default.CallbackModule):
result_dict = dict(result._result)
self._clean_results(result_dict, result._task.action)
if '_zuul_nolog_return' in result_dict:
# We have a custom zuul module that doesn't want the parameters
# from its returned splatted to stdout. This is typically for
# modules that are collecting data to be displayed some other way.
for key in result_dict.keys():
if key != 'changed':
result_dict.pop(key)
if result_dict.get('changed', False):
status = 'changed'