Skip to content

Commit

Permalink
Merge pull request #420 from sdadh01/master
Browse files Browse the repository at this point in the history
Allow auto-conversion if either of node['apache']['listen_ports'] or …
  • Loading branch information
svanzoest committed Apr 13, 2016
2 parents 2ff5c1f + 52372bb commit a41e304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/listen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def merge_listen_attributes(node)
private_class_method

def self.converted_listen_ports_and_addresses(node)
return [] unless node['apache']['listen_ports'] && node['apache']['listen_addresses']
return [] unless node['apache']['listen_ports'] || node['apache']['listen_addresses']
Chef::Log.warn "node['apache']['listen_ports'] and node['apache']['listen_addresses'] are deprecated in favor of node['apache']['listen']. Please adjust your cookbooks"

node['apache']['listen_addresses'].uniq.each_with_object([]) do |address, listen|
Expand Down

0 comments on commit a41e304

Please sign in to comment.