From 43633409a793373cc0cf7984335f0a1a7f549b96 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 7 Sep 2016 21:56:11 -0700 Subject: [PATCH] Use node.normal vs. node.set to avoid deprecation warnings Signed-off-by: Tim Smith --- recipes/_common.rb | 4 ++-- recipes/client.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/_common.rb b/recipes/_common.rb index d556f98..781d0de 100644 --- a/recipes/_common.rb +++ b/recipes/_common.rb @@ -87,7 +87,7 @@ unless node['postfix']['sender_canonical_map_entries'].empty? end 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 @@ -106,7 +106,7 @@ unless node['postfix']['smtp_generic_map_entries'].empty? end 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 diff --git a/recipes/client.rb b/recipes/client.rb index 2f304f1..4858a6f 100644 --- a/recipes/client.rb +++ b/recipes/client.rb @@ -37,6 +37,6 @@ else relayhost = results.map { |n| n['ipaddress'] }.first end -node.set['postfix']['main']['relayhost'] = "[#{relayhost}]" +node.normal['postfix']['main']['relayhost'] = "[#{relayhost}]" include_recipe 'postfix'