diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-05-05 17:33:49 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-05-13 13:41:54 -0700 |
commit | a1b0c0d172e00e0bc145a7f9077671e6cb55c24b (patch) | |
tree | 959bc81bc8760ba8318bd85e53f18b4c8af1d45e | |
parent | 98a349bd78a7f91ad9024fd400d5f8087dddc337 (diff) | |
download | chef-a1b0c0d172e00e0bc145a7f9077671e6cb55c24b.tar.gz |
Replace non-word "whitespaces" with "whitespace".
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r-- | lib/chef/resource/cron.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/cron_d.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/locale.rb | 4 |
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 |