summaryrefslogtreecommitdiff
path: root/lib/chef/resource/locale.rb
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-05-05 17:33:49 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-18 20:29:40 -0700
commit9c957d7da19ac31a50bd6f9a61fa4d10b09de90c (patch)
tree99937f89d303cd7be6fa7f412c0d0c0cd1a7f83f /lib/chef/resource/locale.rb
parent3bf87c6c7ffb66de1aec3d9f88e2329e2aba7b68 (diff)
downloadchef-9c957d7da19ac31a50bd6f9a61fa4d10b09de90c.tar.gz
Replace non-word "whitespaces" with "whitespace".
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib/chef/resource/locale.rb')
-rw-r--r--lib/chef/resource/locale.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/locale.rb b/lib/chef/resource/locale.rb
index bb4f6628e2..0c3e3a90ef 100644
--- a/lib/chef/resource/locale.rb
+++ b/lib/chef/resource/locale.rb
@@ -45,7 +45,7 @@ class Chef
property :lang, String,
description: "Sets the default system language.",
regex: [LOCALE_REGEX],
- validation_message: "The provided lang is not valid. It should be a non-empty string without any leading whitespaces."
+ validation_message: "The provided lang is not valid. It should be a non-empty string without any leading whitespace."
property :lc_env, Hash,
description: "A Hash of LC_* env variables in the form of `({ 'LC_ENV_VARIABLE' => 'VALUE' })`.",
@@ -59,7 +59,7 @@ class Chef
end
end
unless h.values.all? { |x| x =~ LOCALE_REGEX }
- error_msg = "Values of option lc_env should be non-empty string without any leading whitespaces."
+ error_msg = "Values of option lc_env should be non-empty string without any leading whitespace."
raise Chef::Exceptions::ValidationFailed, error_msg
end
h