1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Implements verbose always to assert action plugin module (#17654)

This commit is contained in:
Timothy Appnel 2016-09-20 11:52:21 -04:00 committed by James Cammarata
parent a683256342
commit 1975a545bd

View file

@ -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