diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-03-12 12:47:27 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-03-12 12:47:27 -0700 |
commit | 907320671110830aea04219422c8e53e9e88280f (patch) | |
tree | e524c4ebc7fa5a399301a787c049baa8bd434c33 | |
parent | 10e8ae47e255fb1ced9f594b0ce94f5f332a414c (diff) | |
download | chef-907320671110830aea04219422c8e53e9e88280f.tar.gz |
Use fedora_derived? where we can
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/alternatives.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/alternatives.rb b/lib/chef/resource/alternatives.rb index 75916f7269..a85a2bb138 100644 --- a/lib/chef/resource/alternatives.rb +++ b/lib/chef/resource/alternatives.rb @@ -99,7 +99,7 @@ class Chef action_class do def alternatives_cmd - if platform_family?("rhel", "amazon", "fedora") + if fedora_derived? "alternatives" else "update-alternatives" |