Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.10.10, 10.12.0
-
Fix Version/s: 10.14.0
-
Component/s: Chef Client
-
Labels:
Description
A regression was introduced, according to acrmp, at commit 4eba6949adc5dbabe5b054d42ecebb3fdeffc987 (version 0.10.10 of chef).
(https://github.com/opscode/chef/commit/4eba6949adc5dbabe5b054d42ecebb3fdeffc987)
The symptoms are that the following code would return 'nil' instead the correct value. For example:
p file("/etc/fstab").owner
or
p file("/etc/fstab").mode
Instead of the values of '0' or '420' being returned as expected, you will get a value of 'nil'.
This was found when writing tests using minitest-chef-handler against Chef 0.10.10 and 0.10.12. This is a regression post 0.10.8 (where the expected return values are correct).
See Leif's original issue on the minitest-chef-handler project:
https://github.com/calavera/minitest-chef-handler/issues/23
I commented there:
This is a change that will not have affected normal end users of Chef - it is an issue for minitest-chef-handler because it relies on the behaviour of #load_current_resource being consistent with earlier versions of Chef.