]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/postgresql/definitions/postgresql_munin.rb
Add suppression files for foodcritic
[chef.git] / cookbooks / postgresql / definitions / postgresql_munin.rb
index 8062044f78b46010d0df05aebda44f32f808ece8..3b6056394785226d67651ae1d37a7f74b7d6cb4a 100644 (file)
@@ -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_"