]> git.openstreetmap.org Git - chef.git/commitdiff
Revert incorrect rubocop auto-correction
authorTom Hughes <tom@compton.nu>
Sat, 16 Jan 2016 17:30:39 +0000 (17:30 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 16 Jan 2016 17:30:39 +0000 (17:30 +0000)
cookbooks/networking/recipes/default.rb

index ab139e9fff80b8b9afa30116760f3067cc493590..39611a9dfdb0e2aa5bde681cb40bbd2aa8921a9d 100644 (file)
@@ -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