Skip to main content

AttributeDefault

All Cookstyle Cops


The department is: InSpec/Deprecations

The full name of the cop is: InSpec/Deprecations/AttributeDefault


Enabled by default Supports autocorrection Target Chef Version
Enabled Yes All Versions

The InSpec inputs default option has been replaced with the value option.

Examples

incorrect

login_defs_umask = input('login_defs_umask', default: '077', description: 'Default umask to set in login.defs')

correct

login_defs_umask = input('login_defs_umask', value: '077', description: 'Default umask to set in login.defs')

Configurable attributes

Name Default value Configurable values
Version Added 7.14.0 String
Include
  • **/controls/*.rb
Array

Was this page helpful?

×









Search Results