Project

General

Profile

« Previous | Next » 

Revision dc11280f

Added by Ohad Levy over 12 years ago

  • ID dc11280f19740d7a6510c9c8450f3b78e794a2ee

fixes #1199 - hosts count in puppetclass page always shows 0

Note that this fix still ignores classes assgined via hostgroups.

View differences:

app/helpers/puppetclasses_helper.rb
page.insert_html(:after, "puppetdoc",link_to(:back))
end
end
def host_counter klass
# workaround for sqlite bug
# https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4544-rails3-activerecord-sqlite3-lost-column-type-when-using-views#ticket-4544-2
@counter[klass.id.to_s] || @counter[klass.id.to_i] || 0
rescue
"N/A"
end
end

Also available in: Unified diff