Skip to main content

Chef/Deprecations/MacosUserdefaultsGlobalProperty

Cookstyle cops page

The Cookstyle cops department: Chef/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes16.3+

The global property in the macos_userdefaults resource was deprecated in Chef Infra Client 16.3. This property was never properly implemented and caused failures under many conditions. Omitting the domain property will now set global defaults.

Examples

incorrect

macos_userdefaults 'set a value' do
  global true
  key 'key'
  value 'value'
end

correct

macos_userdefaults 'set a value' do
  key 'key'
  value 'value'
end

Configurable attributes

NameDefault valueConfigurable values
Version Added6.14.0String
Include
    Array

    Thank you for your feedback!

    ×










    Search Results