Simplify platform check logic

Signed-off-by: Tim Smith <tsmith@chef.io>
This commit is contained in:
Tim Smith
2019-12-12 16:51:16 -08:00
parent 99b366e384
commit 38af4293d9
2 changed files with 3 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
#
node['postfix']['maps'].each do |type, maps|
if node['platform_family'] == 'debian'
if platform_family?('debian')
package "postfix-#{type}" if %w(pgsql mysql ldap cdb).include?(type)
end