diff options
author | Hans Rakers <hans@shoq.com> | 2022-06-14 21:32:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 12:32:38 -0700 |
commit | 266c6dc5040153cf184b9446987edc6f4a45cb3d (patch) | |
tree | d2e7ab2daad1d6debc0080c8bdfd2164a40a4f29 | |
parent | 4fff1fc6b87282f94e3e49df594281edcb3fe226 (diff) | |
download | chef-266c6dc5040153cf184b9446987edc6f4a45cb3d.tar.gz |
Stop executing locale-gen on every chef run (#12904)
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 fafa1a5caa..3338de98fb 100644 --- a/lib/chef/resource/locale.rb +++ b/lib/chef/resource/locale.rb @@ -115,7 +115,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 |