summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-06-14 12:32:03 -0700
committerGitHub <noreply@github.com>2022-06-14 12:32:03 -0700
commitb69e7e31615c1b62cd3b168f001a956598231763 (patch)
tree7e4de2f0c07f78e1c77af4482076772d63bf7703
parent257b7319a49206dc8f2ff4579f32a71b73e16784 (diff)
parent32721f5909ece502ff5edd23d018cc56ff0b3a86 (diff)
downloadchef-b69e7e31615c1b62cd3b168f001a956598231763.tar.gz
Merge pull request #12905 from hrak/fix/locale_chef17
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--lib/chef/resource/locale.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/locale.rb b/lib/chef/resource/locale.rb
index 90377ef93a..27f7cda2f7 100644
--- a/lib/chef/resource/locale.rb
+++ b/lib/chef/resource/locale.rb
@@ -114,7 +114,7 @@ class Chef
requirements.assert(:all_actions) do |a|
# RHEL/CentOS type platforms don't have locale-gen
- a.assertion { shell_out("locale-gen") }
+ a.assertion { which("locale-gen") }
a.failure_message(Chef::Exceptions::ProviderNotFound, "The locale resource requires the locale-gen tool")
end
end