Change the way the task 'Validation errors' prints the output messages in order to be more readable.

Depends-On: https://review.opendev.org/c/openstack/validations-common/+/835073
Signed-off-by: Juan Pablo Martí <jmarti@redhat.com>
Change-Id: I1ecb7dcde70feab479bdcd45ecb8045fb19ffaae
This commit is contained in:
Juan Pablo Martí 2022-03-16 18:24:05 -03:00 committed by mbu
parent 4cc17957d2
commit e809c881b9
1 changed files with 3 additions and 1 deletions

View File

@ -211,7 +211,9 @@
# Prints all the validation errors if found. # Prints all the validation errors if found.
- name: Validation errors - name: Validation errors
fail: fail:
msg: "Failed NFV zero packet loss rules:\n{{ validation_msg | join('\n') }}" msg:
- "Failed NFV zero packet loss rules:"
- "{{ validation_msg }}"
when: when:
- validation_msg is defined - validation_msg is defined
- validation_msg | length > 0 - validation_msg | length > 0