diff options
author | rishichawda <rishichawda@users.noreply.github.com> | 2021-08-09 23:02:55 +0530 |
---|---|---|
committer | rishichawda <rishichawda@users.noreply.github.com> | 2021-09-24 16:44:13 +0530 |
commit | 010dbc83c501236caa8c33395c13dc63e1226e1c (patch) | |
tree | f1fc845c3ab155ab5baffc38843d5eafe89e604d | |
parent | 9bf47c78929d7fefb790356938440554d85c3d93 (diff) | |
download | chef-010dbc83c501236caa8c33395c13dc63e1226e1c.tar.gz |
deprecate type and sudo properties
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
-rw-r--r-- | lib/chef/resource/macos_userdefaults.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb index b30ee2f5a0..01c4cd66c2 100644 --- a/lib/chef/resource/macos_userdefaults.rb +++ b/lib/chef/resource/macos_userdefaults.rb @@ -91,7 +91,8 @@ class Chef property :type, String, description: "The value type of the preference key.", equal_to: %w{bool string int float array dict}, - desired_state: false + desired_state: false, + deprecated: true 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 +101,8 @@ class Chef property :sudo, [TrueClass, FalseClass], 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 + desired_state: false, + deprecated: true load_current_value do |new_resource| Chef::Log.debug "#load_current_value: attempting to read \"#{new_resource.domain}\" value from preferences to determine state" |