Project

General

Profile

« Previous | Next » 

Revision 83683ed0

Added by Tomer Brisker over 9 years ago

Fixes #844 #5725 - correct hosts count in puppetclass

View differences:

lib/tasks/puppet.rake
end
end
desc "Correct hosts counts for all classes in case they are wrong"
task :fix_total_hosts => :environment do
if Puppetclass.count > 0
User.current = User.anonymous_admin
Puppetclass.all.each(&:update_total_hosts)
end
end
end

Also available in: Unified diff