Merge "Loop variable name conflict resolution"

This commit is contained in:
Zuul 2021-06-18 14:00:44 +00:00 committed by Gerrit Code Review
commit cc61bd2163
2 changed files with 8 additions and 6 deletions
roles/validations/tasks

@ -30,7 +30,8 @@
jsonres: 'results[*].Status'
- fail:
msg: "Validation failed: some of the validations has failed."
when:
- item != "PASSED"
msg: "Validation failed with {{ validation_status }}: some of the validations has failed. {{ status }}"
when: validation_status != "PASSED"
loop: "{{ status }}"
loop_control:
loop_var: validation_status

@ -26,8 +26,9 @@
jsonres: 'results[*].Status'
- fail:
msg: "Validation failed: some of the validations has failed."
when:
- item != "PASSED"
msg: "Validation failed with {{ validation_status }}: some of the validations has failed. {{ status }}"
when: validation_status != "PASSED"
loop: "{{ status }}"
loop_control:
loop_var: validation_status
when: v_action == "run"