summaryrefslogtreecommitdiff
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
parent3bf87c6c7ffb66de1aec3d9f88e2329e2aba7b68 (diff)
downloadchef-9c957d7da19ac31a50bd6f9a61fa4d10b09de90c.tar.gz
Replace non-word "whitespaces" with "whitespace".
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--lib/chef/resource/cron.rb2
-rw-r--r--lib/chef/resource/cron_d.rb2
-rw-r--r--lib/chef/resource/locale.rb4
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/cron.rb b/lib/chef/resource/cron.rb
index 73460859fa..79cf5642af 100644
--- a/lib/chef/resource/cron.rb
+++ b/lib/chef/resource/cron.rb
@@ -136,7 +136,7 @@ class Chef
raise Chef::Exceptions::ValidationFailed, error_msg
end
unless h.values.all? { |x| x =~ TIMEOUT_REGEX }
- error_msg = "Values of option time_out should be non-empty string without any leading whitespaces."
+ error_msg = "Values of option time_out should be non-empty string without any leading whitespace."
raise Chef::Exceptions::ValidationFailed, error_msg
end
h
diff --git a/lib/chef/resource/cron_d.rb b/lib/chef/resource/cron_d.rb
index a3225c8fdb..c60240acc2 100644
--- a/lib/chef/resource/cron_d.rb
+++ b/lib/chef/resource/cron_d.rb
@@ -175,7 +175,7 @@ class Chef
raise Chef::Exceptions::ValidationFailed, error_msg
end
unless h.values.all? { |x| x =~ TIMEOUT_REGEX }
- error_msg = "Values of option time_out should be non-empty string without any leading whitespaces."
+ error_msg = "Values of option time_out should be non-empty string without any leading whitespace."
raise Chef::Exceptions::ValidationFailed, error_msg
end
h
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