Skip to main content

Chef/Correctness/InvalidPlatformFamilyInCase

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Use valid platform family values in case statements. See Infra Language: Platform Family for a complete list of platform families.

Examples

incorrect

case node['platform_family']
when 'redhat'
  puts "I'm on a RHEL-like system"
end

Configurable attributes

NameDefault valueConfigurable values
Version Added6.6.0String
Include
    Array

    Thank you for your feedback!

    ×









    Search Results