Fix subject_ou length check typo

This commit is contained in:
Rob Best
2019-03-22 12:40:51 +00:00
parent bbc543bc36
commit b65beeb21f

View File

@@ -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, ",")+",",
)