Chef/Deprecations/MacosUserdefaultsGlobalProperty
The Cookstyle cops department: Chef/Deprecations
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | 16.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
Name | Default value | Configurable values |
---|---|---|
Version Added | 6.14.0 | String |
Include | Array |