From 05288b7d0eb3c34e6dd5bcdfa85d2c67246daefd Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Fri, 13 Dec 2024 10:58:40 +0100 Subject: [PATCH] Improve Debian distro version parsing --- collector/sysinfo/sysinfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/sysinfo/sysinfo.go b/collector/sysinfo/sysinfo.go index c84939b..5c93ecf 100644 --- a/collector/sysinfo/sysinfo.go +++ b/collector/sysinfo/sysinfo.go @@ -108,7 +108,7 @@ func (c *SysinfoCollector) updateDistro() error { c.distroVersion = releaseData["BUILD_ID"] case "debian": c.distro = "Debian GNU/Linux" - c.distroVersion = releaseData["VERSION"] + c.distroVersion = strings.ReplaceAll(releaseData["VERSION"], `"`, "") default: c.distro = releaseData["NAME"] }