diff options
author | Hans Rakers <hans@shoq.com> | 2022-04-29 11:20:43 +0200 |
---|---|---|
committer | Hans Rakers <hans@shoq.com> | 2022-06-09 10:37:02 +0200 |
commit | 67547c824bc3cb79af12920603e27c2c164af215 (patch) | |
tree | 8d9b532004fb7305553f631bcc0d29b5cdf9ee08 | |
parent | 6aa802d4886f96807a7f96bd9f91b256c5f18f3f (diff) | |
download | chef-67547c824bc3cb79af12920603e27c2c164af215.tar.gz |
Stop executing locale-gen on every chef run
Signed-off-by: Hans Rakers <hans@shoq.com>
-rw-r--r-- | lib/chef/resource/locale.rb | 2 |
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 |