Skip to content

Instantly share code, notes, and snippets.

@stbenjam
Created April 22, 2015 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stbenjam/8c4e3e5a31887533b2e2 to your computer and use it in GitHub Desktop.
Save stbenjam/8c4e3e5a31887533b2e2 to your computer and use it in GitHub Desktop.
In usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_salt-2.0.2/app/services/foreman_salt/report_importer.rb:
Change this line:
time[:total] = time.values.inject(&:+)
To this:
time[:total] = time.values.compact.inject(&:+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment