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

Another instance of possible incorrect class comparison #1790

Open comay opened 1 year ago

comay commented 1 year ago

Description

While examining a system with Ohai 15.6.3 that was exhibiting the issue called out in #1414, I did a code sweep and noticed there is another instance where the class string is compared against the string "Mash" rather than using is_a?(Mash).

Ohai Version

15.6.3

Platform Version

Ubuntu 20.04.5 LTS

Ohai Output

AFAIK, there is no effect on the output of ohai but I wanted to log this bug report in case this was overlooked.