Skip to content

Commit 46a1662

Browse files
committed
Refactor test_case_details_from_test_case to handle undefined values and improve data aggregation
1 parent 27f1d3f commit 46a1662

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/roles/ha_scs/tasks/sapcontrol-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
- name: "Test Execution: Validate sapcontrol commands"
6262
ansible.builtin.set_fact:
6363
test_case_details_from_test_case: >-
64-
{{ test_case_details_from_test_case + [{
64+
{{ test_case_details_from_test_case | default([]) + [{
6565
'command': sapcontrol_result.cmd,
6666
'returnCode': sapcontrol_result.rc,
6767
'stdout': sapcontrol_result.stdout_lines,

0 commit comments

Comments
 (0)