summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-16 19:25:06 -0700
committerTim Smith <tsmith@chef.io>2018-07-16 19:25:06 -0700
commit37ea80e067410845699458d4e7bf1762fe216e3f (patch)
treec45768a3db9b1e5c88fb803513d576867d47d9ec /lib
parent2881441d1967c278673d58bc8f5415e215fc63f7 (diff)
downloadchef-37ea80e067410845699458d4e7bf1762fe216e3f.tar.gz
Expand platform support for the route resourceroute_platform_family
Support all RHEL derivatives as well as Amazon. This gets us Amazon, Oracle, Scientific, Xen, and a few others. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/route.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/route.rb b/lib/chef/provider/route.rb
index aaa056e542..58a65edb81 100644
--- a/lib/chef/provider/route.rb
+++ b/lib/chef/provider/route.rb
@@ -159,8 +159,8 @@ class Chef
def generate_config
conf = {}
- case node[:platform]
- when "centos", "redhat", "fedora"
+ case node[:platform_family]
+ when "rhel", "amazon", "fedora"
# walk the collection
run_context.resource_collection.each do |resource|
next unless resource.is_a? Chef::Resource::Route