Skip to main content

DeprecatedWindowsVersionCheck

The department is: DeprecatedWindowsVersionCheck

The full name of the cop is: Chef/Deprecations/DeprecatedWindowsVersionCheck

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

do not use the deprecated older_than_win_2012_or_8? helper. Windows versions before 2012 and 8 are now end of life and this helper will always return false.

Examples

incorrect

if older_than_win_2012_or_8?
  # do some legacy things
end

Configurable attributes

NameDefault valueConfigurable values
Version Added6.0.0String
Include
    Array

    Was this page helpful?

    ×









    Search Results