Affects Version/s: 0.10.8
Fix Version/s: None
I've the following test setup (please ignore the actual work the recipes doing):
A definition under 'test' recipe:
Two cookbooks that uses above definition:
And finally a role that uses both cookbooks:
When I assign 'test_role' to a node, and run chef-client, 'do_something' resource works properly for 'test_cookbook_1' as expected. However, for 'test_cookbook_2' it's being skipped due to not_if statement, which shouldn't be the case.
This exact setup was running fine on Chef 9, and started to fail when we upgraded to Chef 10.
When I rename 'do_something' as follows, everything runs as exected:
It looks like Chef10 is keeping state of resources based on the resource name only, which is odd. Any ideas?