summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrishichawda <rishichawda@users.noreply.github.com>2021-08-09 23:55:42 +0530
committerrishichawda <rishichawda@users.noreply.github.com>2021-09-24 16:44:13 +0530
commitf182b5e2caf35ad88eb6b8a368fec9d86255cccc (patch)
tree75d5879abe98143a4209cb258fa4c441239cb6e9
parent010dbc83c501236caa8c33395c13dc63e1226e1c (diff)
downloadchef-f182b5e2caf35ad88eb6b8a368fec9d86255cccc.tar.gz
remove transoform on hash keys
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
-rw-r--r--lib/chef/resource/macos_userdefaults.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb
index 01c4cd66c2..2aad7c9936 100644
--- a/lib/chef/resource/macos_userdefaults.rb
+++ b/lib/chef/resource/macos_userdefaults.rb
@@ -85,8 +85,7 @@ class Chef
property :value, [Integer, Float, String, TrueClass, FalseClass, Hash, Array],
description: "The value of the key. Note: With the `type` property set to `bool`, `String` forms of Boolean true/false values that Apple accepts in the defaults command will be coerced: 0/1, 'TRUE'/'FALSE,' 'true'/false', 'YES'/'NO', or 'yes'/'no'.",
- required: [:write],
- coerce: proc { |v| v.is_a?(Hash) ? v.transform_keys(&:to_s) : v } # make sure keys are all strings for comparison
+ required: [:write]
property :type, String,
description: "The value type of the preference key.",