Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions ansible/roles/test/files/tools/loganalyzer/loganalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,9 @@ def main(argv):
analyzer.place_marker(log_file_list, analyzer.create_start_marker())
return 0
elif (action == "analyze"):
match_file_list = match_files_in.split(tokenizer);
ignore_file_list = ignore_files_in.split(tokenizer);
expect_file_list = expect_files_in.split(tokenizer);
match_file_list = match_files_in.split(tokenizer)
ignore_file_list = ignore_files_in.split(tokenizer)
expect_file_list = expect_files_in.split(tokenizer)

analyzer.place_marker(log_file_list, analyzer.create_end_marker())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@
register: expected_missing_matches

- set_fact:
fail_in_logs: "{{ errors_found.stdout != \"0\" or expected_missing_matches.stdout != \"0\" }}"
fail_in_logs: "{{ errors_found.stdout != \"0\" or expected_missing_matches.stdout != \"0\" }}"

- set_fact:
dump_since: '1 hour ago'
when: dump_since is not defined

- name: Generate system dump
command: generate_dump
command: "generate_dump -s '{{ dump_since }}'"
become: true
register: generate_dump
when: fail_in_logs
Expand Down