shirou / gopsutil

psutil for golang
Other
10.47k stars 1.58k forks source link

The host.Info() function is unable to correctly identify CentOS Stream 8. #1571

Closed ssongliu closed 8 months ago

ssongliu commented 8 months ago

You're welcome! It seems there's an issue when attempting to retrieve the host version on a CentOS Stream 8 system using host.Info(). The function returns the release version as CentOS 8 instead of correctly identifying it as CentOS Stream 8.

image

Lomanic commented 8 months ago

This is still a rhel 8, Stream is just its codename or flavour or commercial name. Its /etc/os-release file doesn't even mention Stream.