From 9eb98040e90c401a550dae553f2eb59304536d8c Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 20 Mar 2020 10:12:12 +0200 Subject: [PATCH] source/system: do not publish empty version labels Do not publish non-existing version components as empty labels. --- source/system/system.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/system/system.go b/source/system/system.go index c61f9f10f..750a5d824 100644 --- a/source/system/system.go +++ b/source/system/system.go @@ -51,7 +51,9 @@ func (s Source) Discover() (source.Features, error) { if key == "VERSION_ID" { versionComponents := splitVersion(value) for subKey, subValue := range versionComponents { - features[feature+"."+subKey] = subValue + if subValue != "" { + features[feature+"."+subKey] = subValue + } } } }