diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-07-20 16:02:01 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-07-20 16:02:01 -0700 |
commit | 8a646ae9e701af2adfe98f5a950cb01deb7023d3 (patch) | |
tree | 2a70c2f36bcda8f39a2191598a28277fd93b279b | |
parent | cdd4db7607792640a709c38aebf16d750618b4df (diff) | |
download | chef-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.rb | 1 |
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, |