Chef/Correctness/InvalidPlatformFamilyInCase
The Cookstyle cops department: Chef/Correctness
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | All 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
Name | Default value | Configurable values |
---|---|---|
Version Added | 6.6.0 | String |
Include | Array |