summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-06-14 12:27:59 -0700
committerGitHub <noreply@github.com>2022-06-14 12:27:59 -0700
commita3ee2700a612536b75eebafdcb1376f25c8c0b47 (patch)
tree8442fb4b596053b50d98cbbc9a78ae4fa5f8719c
parent95e7189162584f3d131a8ca6d0889539808ad3ab (diff)
parent67547c824bc3cb79af12920603e27c2c164af215 (diff)
downloadchef-a3ee2700a612536b75eebafdcb1376f25c8c0b47.tar.gz
Merge pull request #12833 from hrak/fix/locale_resource
2 failures in the verify pipeline are known and unrelated to this code
-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 8d9280b20b..a57dd70975 100644
--- a/lib/chef/resource/locale.rb
+++ b/lib/chef/resource/locale.rb
@@ -113,7 +113,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