diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-16 19:25:06 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-07-16 19:25:06 -0700 |
commit | 37ea80e067410845699458d4e7bf1762fe216e3f (patch) | |
tree | c45768a3db9b1e5c88fb803513d576867d47d9ec /lib | |
parent | 2881441d1967c278673d58bc8f5415e215fc63f7 (diff) | |
download | chef-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.rb | 4 |
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 |