X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fd9f8ed59ba069915ceab6174a6a792298e127c0..10e1976e6e9fd98e058831e93fbec2eafd9c8167:/cookbooks/networking/recipes/default.rb diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index fe01c04e5..477a15b24 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -23,7 +23,7 @@ require "ipaddr" node[:networking][:interfaces].each do |name, interface| - if interface[:role] && role = node[:networking][:roles][interface[:role]] + if interface[:role] && (role = node[:networking][:roles][interface[:role]]) if role[interface[:family]] node.set[:networking][:interfaces][name][:prefix] = role[interface[:family]][:prefix] node.set[:networking][:interfaces][name][:gateway] = role[interface[:family]][:gateway]