X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/10e1976e6e9fd98e058831e93fbec2eafd9c8167..f30f230da23603e3c7598205219ce01e9820c470:/cookbooks/networking/recipes/default.rb diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 477a15b24..ab139e9ff 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -35,7 +35,7 @@ node[:networking][:interfaces].each do |name, interface| prefix = node[:networking][:interfaces][name][:prefix] - node.set[:networking][:interfaces][name][:netmask] = (~IPAddr.new(interface[:address]).mask(0)).mask(prefix) + node.set[:networking][:interfaces][name][:netmask] = ~IPAddr.new(interface[:address]).mask(0).mask(prefix) node.set[:networking][:interfaces][name][:network] = IPAddr.new(interface[:address]).mask(prefix) end