From b65beeb21f1c49555e3fe7d2788374bbb55d0c87 Mon Sep 17 00:00:00 2001 From: Rob Best Date: Fri, 22 Mar 2019 12:40:51 +0000 Subject: [PATCH] Fix subject_ou length check typo --- ssl_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl_exporter.go b/ssl_exporter.go index a1fbb87..db35b2c 100644 --- a/ssl_exporter.go +++ b/ssl_exporter.go @@ -164,7 +164,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) { ) } - if len(subjectIPs) > 0 { + if len(subjectOUs) > 0 { ch <- prometheus.MustNewConstMetric( subjectOrganizationUnits, prometheus.GaugeValue, 1, serialNum, issuerCN, ","+strings.Join(subjectOUs, ",")+",", )