Improve Debian distro version parsing
All checks were successful
/ go-test (push) Successful in 10m7s

This commit is contained in:
Melora Hugues 2024-12-13 10:58:40 +01:00
parent 783eaea96a
commit 05288b7d0e
Signed by: faercol
SSH key fingerprint: SHA256:lzUKsKDIw1w0bcLnoBu84oYJOnLmi7SeKetszpyDCFY

View file

@ -108,7 +108,7 @@ func (c *SysinfoCollector) updateDistro() error {
c.distroVersion = releaseData["BUILD_ID"] c.distroVersion = releaseData["BUILD_ID"]
case "debian": case "debian":
c.distro = "Debian GNU/Linux" c.distro = "Debian GNU/Linux"
c.distroVersion = releaseData["VERSION"] c.distroVersion = strings.ReplaceAll(releaseData["VERSION"], `"`, "")
default: default:
c.distro = releaseData["NAME"] c.distro = releaseData["NAME"]
} }