Skip to content

Commit

Permalink
[test_snmp_traps] Wait up to two minutes for the snmp logs to show th…
Browse files Browse the repository at this point in the history
…e alarm
  • Loading branch information
elfiesmelfie committed Jan 23, 2025
1 parent d92ae58 commit d0efff0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roles/test_snmp_traps/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@
oc logs -l "app=default-snmp-webhook"
register: cmd_output
changed_when: false
failed_when: "'Sending SNMP trap' not in cmd_output.stdout"
retries: 12
delay: 10
until: "'Sending SNMP trap' in cmd_output.stdout"


rescue:
- name: "Show the snmp traps logs"
Expand Down

0 comments on commit d0efff0

Please sign in to comment.