summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Weyer <59973736+jweyer8@users.noreply.github.com>2022-12-13 12:22:46 -0800
committerGitHub <noreply@github.com>2022-12-13 15:22:46 -0500
commit1c302291b378a8fc5d0177d6b9dda7ac79a0366a (patch)
treef20a7fa45fa1922530533ba83d91911b5f6973a7
parent9b1ef8c55c33e4200523b53d997b989dbfdef2aa (diff)
downloadchef-1c302291b378a8fc5d0177d6b9dda7ac79a0366a.tar.gz
Use string for property deprecated message (#13350)
Signed-off-by: Jared Weyer <v-jaredweyer@microsoft.com>
-rw-r--r--lib/chef/resource/macos_userdefaults.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb
index 6935c2fd90..7559990d3a 100644
--- a/lib/chef/resource/macos_userdefaults.rb
+++ b/lib/chef/resource/macos_userdefaults.rb
@@ -69,7 +69,7 @@ class Chef
property :global, [TrueClass, FalseClass],
description: "Determines whether or not the domain is global.",
- deprecated: true,
+ deprecated: "As of Chef Infra Client 17.8 the `global` property is no longer necessary.",
default: false,
desired_state: false
@@ -90,7 +90,7 @@ class Chef
description: "The value type of the preference key.",
equal_to: %w{bool string int float array dict},
desired_state: false,
- deprecated: true
+ deprecated: "As of Chef Infra Client 17.8 the `type` property is no longer necessary."
property :user, [String, Symbol],
description: "The system user that the default will be applied to. Set :current for current user, :all for all users or pass a valid username",
@@ -100,7 +100,7 @@ class Chef
description: "Set to true if the setting you wish to modify requires privileged access. This requires passwordless sudo for the `/usr/bin/defaults` command to be setup for the user running #{ChefUtils::Dist::Infra::PRODUCT}.",
default: false,
desired_state: false,
- deprecated: true
+ deprecated: "As of Chef Infra Client 17.8 the `sudo` property is no longer necessary."
load_current_value do |new_resource|
Chef::Log.debug "#load_current_value: attempting to read \"#{new_resource.domain}\" value from preferences to determine state"