Skip to content

Commit c276cf5

Browse files
committed
Fix prometheus_blackbox_exporter_endpoints select
Enabled items under prometheus_blackbox_exporter_endpoints_kayobe were not picked up because the attribute gets set to `enabled: 'True'`, rather the than `enabled: true` that the default values get. Likely a similar issue to this: ansible/ansible#11905 (comment)
1 parent 0546050 commit c276cf5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

etc/kayobe/kolla/inventory/group_vars/prometheus-blackbox-exporter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
prometheus_blackbox_exporter_endpoints: >-
1010
{{ (prometheus_blackbox_exporter_endpoints_kayobe | default([]) +
1111
prometheus_blackbox_exporter_endpoints_default) |
12-
selectattr('enabled', 'true') |
12+
selectattr('enabled', 'match', 'true|True') |
1313
map(attribute='endpoints') | flatten |
1414
union(prometheus_blackbox_exporter_endpoints_custom) |
1515
unique | select | list }}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes an issue where enabled endpoints under
5+
``prometheus_blackbox_exporter_endpoints_kayobe`` were not picked up when
6+
templating out ``prometheus_blackbox_exporter_endpoints``.

0 commit comments

Comments
 (0)