Improve Debian distro version parsing
All checks were successful
/ go-test (push) Successful in 10m7s
All checks were successful
/ go-test (push) Successful in 10m7s
This commit is contained in:
parent
783eaea96a
commit
05288b7d0e
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue