From 1975a545bda3b32cb47ea30140f99c54cc354ad2 Mon Sep 17 00:00:00 2001 From: Timothy Appnel Date: Tue, 20 Sep 2016 11:52:21 -0400 Subject: [PATCH] Implements verbose always to assert action plugin module (#17654) --- lib/ansible/plugins/action/assert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/assert.py b/lib/ansible/plugins/action/assert.py index effe5ba96b..808881b1ff 100644 --- a/lib/ansible/plugins/action/assert.py +++ b/lib/ansible/plugins/action/assert.py @@ -51,6 +51,7 @@ class ActionModule(ActionBase): # by this point, and is not used again, so we don't care about mangling # that value now cond = Conditional(loader=self._loader) + result['_ansible_verbose_always'] = True for that in thats: cond.when = [that] test_result = cond.evaluate_conditional(templar=self._templar, all_vars=task_vars) @@ -65,5 +66,5 @@ class ActionModule(ActionBase): return result result['changed'] = False - result['msg'] = 'all assertions passed' + result['msg'] = 'All assertions passed' return result