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"
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