X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/faf8ae12e85eabb050b0f5eceb2cb67ad1de5261..c1f1e240baece8f3a3ee1d7139736e4a6a0f027e:/cookbooks/postgresql/definitions/postgresql_munin.rb diff --git a/cookbooks/postgresql/definitions/postgresql_munin.rb b/cookbooks/postgresql/definitions/postgresql_munin.rb index 8062044f7..3b6056394 100644 --- a/cookbooks/postgresql/definitions/postgresql_munin.rb +++ b/cookbooks/postgresql/definitions/postgresql_munin.rb @@ -22,7 +22,7 @@ define :postgresql_munin, :action => :create do suffix = cluster.tr("/", ":") database = params[:database] - if node[:postgresql][:clusters] and node[:postgresql][:clusters][cluster] + if node[:postgresql][:clusters] && node[:postgresql][:clusters][cluster] munin_plugin "postgres_cache_#{database}:#{suffix}" do action params[:action] target "postgres_cache_"