Skip to main content

ResourceSetsInternalProperties

The department is: ResourceSetsInternalProperties

The full name of the cop is: Chef/Correctness/ResourceSetsInternalProperties

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