ResourceSetsInternalProperties
The department is: Chef/Correctness
The full name of the cop is: Chef/Correctness/ResourceSetsInternalProperties
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 | Exclude |
|
Array |
Was this page helpful?