From e809c881b90702641d91807f2724bd21900f94ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pablo=20Mart=C3=AD?= Date: Wed, 16 Mar 2022 18:24:05 -0300 Subject: [PATCH] Change the way the task 'Validation errors' prints the output messages in order to be more readable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Depends-On: https://review.opendev.org/c/openstack/validations-common/+/835073 Signed-off-by: Juan Pablo Martí Change-Id: I1ecb7dcde70feab479bdcd45ecb8045fb19ffaae --- roles/check_nfv_ovsdpdk_zero_packet_loss/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/check_nfv_ovsdpdk_zero_packet_loss/tasks/main.yml b/roles/check_nfv_ovsdpdk_zero_packet_loss/tasks/main.yml index e4fa7b34c..dfb60a956 100644 --- a/roles/check_nfv_ovsdpdk_zero_packet_loss/tasks/main.yml +++ b/roles/check_nfv_ovsdpdk_zero_packet_loss/tasks/main.yml @@ -211,7 +211,9 @@ # Prints all the validation errors if found. - name: Validation errors fail: - msg: "Failed NFV zero packet loss rules:\n{{ validation_msg | join('\n') }}" + msg: + - "Failed NFV zero packet loss rules:" + - "{{ validation_msg }}" when: - validation_msg is defined - validation_msg | length > 0