]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/postgresql/providers/munin.rb
Fix new rubocop warnings
[chef.git] / cookbooks / postgresql / providers / munin.rb
index 986c11f44a77d609f8bf0e103cf26d4294d14f01..efa0a8b4dccbfe9b304c770266cad25874ed2116 100644 (file)
@@ -28,7 +28,7 @@ action :create do
   database = new_resource.database
 
   if cluster
-    %w(cache connections locks querylength scans size transactions tuples).each do |plugin|
+    %w[cache connections locks querylength scans size transactions tuples].each do |plugin|
       munin_plugin "postgres_#{plugin}_#{database}:#{suffix}" do
         target "postgres_#{plugin}_"
         conf "munin.erb"
@@ -45,7 +45,7 @@ end
 action :delete do
   database = new_resource.database
 
-  %w(cache connections locks querylength scans size transactions tuples).each do |plugin|
+  %w[cache connections locks querylength scans size transactions tuples].each do |plugin|
     munin_plugin "postgres_#{plugin}_#{database}:#{suffix}" do
       action :delete
       restart_munin false