Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
fail_in_logs: errors_found.stdout != "0"

- name: Generate system dump
command: sonic_support
register: sonic_support
command: generate_dump
register: generate_dump
when: fail_in_logs

- name : Fetch result files from switch to ansible machine
Expand All @@ -32,14 +32,14 @@
with_items:
- "{{ test_out_dir }}/{{result_file}}"
- "{{ test_out_dir }}/{{summary_file}}"
- "{{ sonic_support.stdout | default(omit) }}"
- "{{ generate_dump.stdout | default(omit) }}"
when: fail_in_logs

- debug: msg="File {{ item }} saved to {{ test_fetch_dir }}"
with_items:
- "{{result_file}}"
- "{{summary_file}}"
- "{{ sonic_support.stdout | default(omit) }}"
- "{{ generate_dump.stdout | default(omit) }}"
when: fail_in_logs

- name: Fail due to errors in logs
Expand Down