From 8887ebd0cf98da6d76711fcc2fad4e46f18123a3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 16 Jan 2016 17:30:39 +0000 Subject: [PATCH] Revert incorrect rubocop auto-correction --- cookbooks/networking/recipes/default.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index ab139e9ff..39611a9df 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -35,8 +35,10 @@ 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) + # rubocop:disable Style/RedundantParentheses + 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) + # rubocop:enable Style/RedundantParentheses end template "/etc/network/interfaces" do -- 2.43.2