summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-07-21 19:06:35 -0700
committerGitHub <noreply@github.com>2020-07-21 19:06:35 -0700
commit312456995bf46cbe258a8cceea561413e0864a21 (patch)
tree894956eb7b666241035030f4ce7f0ff9a1be3954
parentbdc4637c0dfd88f3e71f42e2e4e4e2a820365bb0 (diff)
downloadchef-macos_userdefaults.tar.gz
Update lib/chef/resource/macos_userdefaults.rb macos_userdefaults
Signed-off-by: Tim Smith <tsmith@chef.io> Co-authored-by: pete higgins <pete@peterhiggins.org>
-rw-r--r--lib/chef/resource/macos_userdefaults.rb2
1 files changed, 1 insertions, 1 deletions
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