Commit f9c404cd authored by Tim Smith's avatar Tim Smith
Browse files

Simplify platform check logic


Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent 9e257ae2
......@@ -29,8 +29,7 @@ default['cron']['package_name'] = case node['platform_family']
[]
end
default['cron']['service_name'] = case node['platform_family']
when 'amazon', 'rhel', 'fedora', 'pld'
default['cron']['service_name'] = if platform_family?('amazon', 'rhel', 'fedora', 'pld')
'crond'
else
'cron'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment