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:39:19 +0200 |
commit | 32721f5909ece502ff5edd23d018cc56ff0b3a86 (patch) | |
tree | 7e4de2f0c07f78e1c77af4482076772d63bf7703 | |
parent | 257b7319a49206dc8f2ff4579f32a71b73e16784 (diff) | |
download | chef-32721f5909ece502ff5edd23d018cc56ff0b3a86.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 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 |