Use node.normal vs. node.set to avoid deprecation warnings

Signed-off-by: Tim Smith <tsmith@chef.io>
This commit is contained in:
Tim Smith 2016-09-07 21:56:11 -07:00
parent dde7bba9c1
commit 43633409a7
2 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ unless node['postfix']['sender_canonical_map_entries'].empty?
end end
unless node['postfix']['main'].key?('sender_canonical_maps') unless node['postfix']['main'].key?('sender_canonical_maps')
node.set['postfix']['main']['sender_canonical_maps'] = "hash:#{node['postfix']['conf_dir']}/sender_canonical" node.normal['postfix']['main']['sender_canonical_maps'] = "hash:#{node['postfix']['conf_dir']}/sender_canonical"
end end
end end
@ -106,7 +106,7 @@ unless node['postfix']['smtp_generic_map_entries'].empty?
end end
unless node['postfix']['main'].key?('smtp_generic_maps') unless node['postfix']['main'].key?('smtp_generic_maps')
node.set['postfix']['main']['smtp_generic_maps'] = "hash:#{node['postfix']['conf_dir']}/smtp_generic" node.normal['postfix']['main']['smtp_generic_maps'] = "hash:#{node['postfix']['conf_dir']}/smtp_generic"
end end
end end

View File

@ -37,6 +37,6 @@ else
relayhost = results.map { |n| n['ipaddress'] }.first relayhost = results.map { |n| n['ipaddress'] }.first
end end
node.set['postfix']['main']['relayhost'] = "[#{relayhost}]" node.normal['postfix']['main']['relayhost'] = "[#{relayhost}]"
include_recipe 'postfix' include_recipe 'postfix'