]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/sysctl/recipes/default.rb
Fix new rubocop warnings
[chef.git] / cookbooks / sysctl / recipes / default.rb
index 7a0ed43573fbb6c6b369349d5c86dfaec506f649..562504835fceaa7c11154c01fe2170ce0ce15d3f 100644 (file)
@@ -42,7 +42,7 @@ end
 
 node[:sysctl].each_value do |group|
   group[:parameters].each do |key, value|
-    sysctl_file = "/proc/sys/#{key.gsub('.', '/')}"
+    sysctl_file = "/proc/sys/#{key.tr('.', '/')}"
 
     file sysctl_file do
       content "#{value}\n"