balena-os / balena-supervisor

Balena Supervisor: balena's agent on devices.
https://balena.io
Other
150 stars 63 forks source link

Only read directories under /sys/class/net #2357

Open pipex opened 4 months ago

pipex commented 4 months ago

When reading mac addresses, if there is a non-directory file under /sys/class/net, this will cause the supervisor to show an exception on the logs. This now filters out non-directories on the list to prevent this

Change-type: patch