summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-09-11 11:29:43 -0700
committerTim Smith <tsmith84@gmail.com>2020-09-11 17:15:46 -0700
commitb18941a7025fffc3b3aed7098dfcf0c698987226 (patch)
tree78efb8592f8282937a76a41b6fae18a87031e9e2
parent3643b3254966efd9821fe398a4289f4c52592215 (diff)
downloadchef-b18941a7025fffc3b3aed7098dfcf0c698987226.tar.gz
Update validation error message
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/windows_user_privilege.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_user_privilege.rb b/lib/chef/resource/windows_user_privilege.rb
index 639e27e987..971338303d 100644
--- a/lib/chef/resource/windows_user_privilege.rb
+++ b/lib/chef/resource/windows_user_privilege.rb
@@ -138,7 +138,7 @@ class Chef
required: true,
coerce: proc { |v| Array(v) },
callbacks: {
- "Option privilege must include any of the: #{PRIVILEGE_OPTS}" => lambda { |n| (n - PRIVILEGE_OPTS).empty? },
+ "Privilege property restricted to the following values: #{PRIVILEGE_OPTS}" => lambda { |n| (n - PRIVILEGE_OPTS).empty? },
}
load_current_value do |new_resource|