From 312456995bf46cbe258a8cceea561413e0864a21 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 21 Jul 2020 19:06:35 -0700 Subject: Update lib/chef/resource/macos_userdefaults.rb Signed-off-by: Tim Smith Co-authored-by: pete higgins --- lib/chef/resource/macos_userdefaults.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb index db0e0dad37..d163fd8402 100644 --- a/lib/chef/resource/macos_userdefaults.rb +++ b/lib/chef/resource/macos_userdefaults.rb @@ -83,7 +83,7 @@ class Chef introduced: "16.3" property :value, [Integer, Float, String, TrueClass, FalseClass, Hash, Array], - description: "The value of the key. Note: If you set the `type` property to `bool` we'll automatically try to convert various `String` forms of the Boolean true/false that Apple accepts in the defaults command: 0/1, 'TRUE'/'FALSE,' 'true'/false', 'YES'/'NO', or 'yes'/'no'.", + 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 -- cgit v1.2.1