Chef/Correctness/ResourceSetsInternalProperties
The Cookstyle cops department: Chef/Correctness
| Enabled by default | Supports autocorrection | Target Chef Version |
|---|---|---|
| Enabled | No | All Versions |
Chef Infra Client uses properties in several resources to track state. These should not be set in recipes as they break the internal workings of the Chef Infra Client
Examples
incorrect
service 'foo' do
running true
action [:start, :enable]
end
correct
service 'foo' do
action [:start, :enable]
end
Configurable attributes
| Name | Default value | Configurable values |
|---|---|---|
| Version Added | 5.5.0 | String |
| Include | Array |