Skip to content

Commit

Permalink
Use the proper parameter for SNMP timeout (#435)
Browse files Browse the repository at this point in the history
The SNMP_TIMEOUT environment variable in the manifest_snmp_traps.j2
template for Service Telemetry Operator uses the wrong parameter,
passing port instead of timeout value to the template.

This change updates the template to use the appropriate parameter as
input.

Closes: rhbz#2213016
  • Loading branch information
leifmadsen authored Jun 13, 2023
1 parent e30efa0 commit 9eacaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/servicetelemetry/templates/manifest_snmp_traps.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
- name: SNMP_PORT
value: "{{ servicetelemetry_vars.alerting.alertmanager.receivers.snmp_traps.port }}"
- name: SNMP_TIMEOUT
value: "{{ servicetelemetry_vars.alerting.alertmanager.receivers.snmp_traps.port }}"
value: "{{ servicetelemetry_vars.alerting.alertmanager.receivers.snmp_traps.timeout }}"
- name: ALERT_OID_LABEL
value: "{{ servicetelemetry_vars.alerting.alertmanager.receivers.snmp_traps.alert_oid_label }}"
- name: TRAP_OID_PREFIX
Expand Down

0 comments on commit 9eacaf4

Please sign in to comment.