summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-12 12:47:27 -0700
committerTim Smith <tsmith84@gmail.com>2020-03-12 12:47:27 -0700
commit907320671110830aea04219422c8e53e9e88280f (patch)
treee524c4ebc7fa5a399301a787c049baa8bd434c33
parent10e8ae47e255fb1ced9f594b0ce94f5f332a414c (diff)
downloadchef-907320671110830aea04219422c8e53e9e88280f.tar.gz
Use fedora_derived? where we can
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/alternatives.rb2
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"