You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We've found using gopsutil quite useful in open-source rport project. But we've encountered a problem of detecting a platform family for Linux opensuse-leap distribution. Here is an example of os-release file:
PlatformInformationWithContext detects platform family by ID attribute. Since "opensuse-leap" is missing in the switch statement, it returns an empty string for family.
Expected behavior PlatformInformationWithContext should return suse value as familyvariable.
Environment: Linux HV3-Rport-Client-SuSE-01 5.3.18-lp152.60-default #1 SMP Tue Jan 12 23:10:31 UTC 2021 (9898712) x86_64 x86_64 x86_64 GNU/Linux
Describe the bug
We've found using
gopsutil
quite useful in open-source rport project. But we've encountered a problem of detecting a platform family for Linuxopensuse-leap
distribution. Here is an example ofos-release
file:PlatformInformationWithContext
detects platform family byID
attribute. Since"opensuse-leap"
is missing in the switch statement, it returns an empty string forfamily
.Expected behavior
PlatformInformationWithContext
should returnsuse
value asfamily
variable.Environment:
Linux HV3-Rport-Client-SuSE-01 5.3.18-lp152.60-default #1 SMP Tue Jan 12 23:10:31 UTC 2021 (9898712) x86_64 x86_64 x86_64 GNU/Linux
Additional context
According to https://en.opensuse.org/SDB:SUSE_and_openSUSE_Products_Version_Outputs there are other distributions that are not supported by
PlatformInformationWithContext
:"opensuse-tumbleweed", "opensuse-tumbleweed-kubic", "sled", "caasp"
.BTW, if you like our project https://github.com/cloudradar-monitoring/rport - please give us a star🙂
The text was updated successfully, but these errors were encountered: