Chef/Correctness/InvalidPlatformInCase
The Cookstyle cops department: Chef/Correctness
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | All Versions |
Use valid platform values in case statements. See Infra Language: Platform for a list of many common platform values.
Examples
incorrect
case node['platform']
when 'rhel'
puts "I'm on a Red Hat system!"
end
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 6.6.0 | String |
Include | Array |