Simplify platform check logic
Signed-off-by: Tim Smith <tsmith@chef.io>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user