Skip to main content

Chef/Correctness/ResourceSetsInternalProperties

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll 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

NameDefault valueConfigurable values
Version Added5.5.0String
Include
    Array

    Thank you for your feedback!

    ×











    Search Results