shirou / gopsutil

psutil for golang
Other
10.36k stars 1.57k forks source link

ensure host platform are files and have contents #1584

Closed brycekahle closed 6 months ago

brycekahle commented 6 months ago

In a containerized deployment, it is common to mount several files from /etc. Within the container, those files will be created regardless if they exist on the host or not. In those instances, the existing code would erroneously return empty platform information.