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 Dec 16, 2024
1 parent a0ffb93 commit 119f719
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 @@ -75,7 +75,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: "Get the snmp traps logs"
Expand Down

0 comments on commit 119f719

Please sign in to comment.