Project

General

Profile

« Previous | Next » 

Revision 61b5da1b

Added by Shimon Shtein over 9 years ago

Fixes #9339 - Changed the OS sorting to title

Title uses the full string, not only the name part.

View differences:

lib/tasks/fix_cached_counters.rake
task :fix_cached_counters => :environment do
puts "Correcting cached counters: (this may take a few minutes)"
[ Architecture, Environment, Operatingsystem, Domain, Realm].each do |cl|
cl.all.each{|el| cl.reset_counters(el.id, :hosts, :hostgroups)}
cl.unscoped.all.each{|el| cl.reset_counters(el.id, :hosts, :hostgroups)}
puts "#{cl} corrected"
end
Puppetclass.all.each{|el| Puppetclass.reset_counters(el.id, :hostgroup_classes, :lookup_keys)}

Also available in: Unified diff