chef / ohai

Ohai profiles your system and emits JSON
https://docs.chef.io/ohai.html
Apache License 2.0
681 stars 452 forks source link

cpu: Fix issues with newer versions of lscpu #1809

Closed ramereth closed 1 month ago

ramereth commented 11 months ago

Starting in util-linux v2.36, the output of lscpu changed which introduced some bugs in some platforms. To work around this, the previous output can be retained if the lscpu command is piped to something else. To work around that, this just pipes the output to cat.

This fixes #1805

Signed-off-by: Lance Albertson lance@osuosl.org

Description

Related Issue

Types of changes

Checklist:

sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 12 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
12 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
56.1% Duplication on New Code

See analysis details on SonarCloud