Skip to main content

InvalidPlatformFamilyHelper

The department is: InvalidPlatformFamilyHelper

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

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Pass valid platform families to the platform_family? helper. See Infra Language: Platform Family for a complete list of platform families.

Examples

incorrect

platform_family?('redhat')
platform_family?('sles')

#### incorrect

```ruby
platform_family?('rhel')
platform_family?('suse')

Configurable attributes

NameDefault valueConfigurable values
Version Added5.15.0String
Include
    Array

    Was this page helpful?

    ×









    Search Results