mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
allow debug to be 'changed' (#20957)
* allow debug to be 'changed' fixes #14430 * removed test that checked against this
This commit is contained in:
@@ -192,8 +192,6 @@ class CallbackBase:
|
|||||||
del result._result['results']
|
del result._result['results']
|
||||||
|
|
||||||
def _clean_results(self, result, task_name):
|
def _clean_results(self, result, task_name):
|
||||||
if 'changed' in result and task_name in ['debug']:
|
|
||||||
del result['changed']
|
|
||||||
if 'invocation' in result and task_name in ['debug']:
|
if 'invocation' in result and task_name in ['debug']:
|
||||||
del result['invocation']
|
del result['invocation']
|
||||||
|
|
||||||
|
|||||||
@@ -76,8 +76,6 @@ class TestCallbackResults(unittest.TestCase):
|
|||||||
self.assertTrue('changed' in result)
|
self.assertTrue('changed' in result)
|
||||||
self.assertTrue('invocation' in result)
|
self.assertTrue('invocation' in result)
|
||||||
cb._clean_results(result, 'debug')
|
cb._clean_results(result, 'debug')
|
||||||
self.assertFalse('changed' in result)
|
|
||||||
self.assertFalse('invocation' in result)
|
|
||||||
|
|
||||||
|
|
||||||
class TestCallbackDumpResults(unittest.TestCase):
|
class TestCallbackDumpResults(unittest.TestCase):
|
||||||
|
|||||||
Reference in New Issue
Block a user