Skip to content

Commit

Permalink
[test_verify_email] Remove grep from log check
Browse files Browse the repository at this point in the history
* Use "XXX not in stdout" instead
  • Loading branch information
elfiesmelfie committed Dec 3, 2024
1 parent 5aa2e2b commit 71f97a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/test_verify_email/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@
- name: "RHELOSP-176045 Check for alertmanager logs"
ansible.builtin.shell:
cmd: |
oc logs alertmanager-default-0 -c alertmanager | grep 'receiver=email'
oc logs alertmanager-default-0 -c alertmanager
register: cmd_output
failed_when: "cmd_output.stdout_lines | length == 0"
failed_when:
- "cmd_output.stdout_lines | length == 0"
- "'receiver=email' not in cmd_outout.stdout"
changed_when: false

always:
Expand Down

0 comments on commit 71f97a7

Please sign in to comment.