Deprecation: Windows CPU plugin attribute changes. (OHAI-5)
The Windows Ohai plugin has been updated to correctly return CPU information. Previously the CPU plugin reported a model_name
value, which was actually the CPU’s description and not the actual model name. Ohai now reports the proper name value for model_name
and provides description
with the previous description value. This behavior aligns CPU plugin behavior between *nix and Windows hosts in Chef.
Remediation
If you rely on the format of a CPU model_name value such as node['cpu'['0']['model_name']
you will need to update your cookbook code to reference node['cpu']['0']['description']
instead.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/deprecations_ohai_windows_cpu/