]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/api_calls_status
Merge branch 'patch-2' of https://github.com/Tigerfell/chef into pr257
[chef.git] / cookbooks / munin / files / default / plugins / api_calls_status
index 0d7c9b645c2c07e008e1b23a0d60e2ed7a35cbf1..4a9623f9b877d33d9606f355e3afeb7bb541b512 100755 (executable)
@@ -40,7 +40,7 @@ if ARGV[0] == "config"
 else
   statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json"))
 
 else
   statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json"))
 
-  HTTP_STATUSES.keys.each do |code|
+  HTTP_STATUSES.each_key do |code|
     count = statistics["status"][code] || 0
     puts "http#{code}.value #{count}"
   end
     count = statistics["status"][code] || 0
     puts "http#{code}.value #{count}"
   end