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

This commit is contained in:
Zuul 2022-05-11 18:01:42 +00:00 committed by Gerrit Code Review
commit 68a360a242
1 changed files with 3 additions and 1 deletions

View File

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