summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-20 16:02:01 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-20 16:02:01 -0700
commit8a646ae9e701af2adfe98f5a950cb01deb7023d3 (patch)
tree2a70c2f36bcda8f39a2191598a28277fd93b279b
parentcdd4db7607792640a709c38aebf16d750618b4df (diff)
downloadchef-8a646ae9e701af2adfe98f5a950cb01deb7023d3.tar.gz
Enforce inputs to the type property
This also automatically generates the docs for allowed values Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/macos_userdefaults.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource/macos_userdefaults.rb b/lib/chef/resource/macos_userdefaults.rb
index ea9f5901ba..0bf2421e94 100644
--- a/lib/chef/resource/macos_userdefaults.rb
+++ b/lib/chef/resource/macos_userdefaults.rb
@@ -89,6 +89,7 @@ class Chef
property :type, String,
description: "The value type of the preference key.",
+ equal_to: ["bool", "string", 'int', 'float', 'array', 'dict']
desired_state: false
property :user, String,