stdevel / check_katello_currency

A Nagios / Icinga plugin for checking patch currency of hosts managed by Foreman/Katello or Red Hat Satellite 6
GNU General Public License v3.0
1 stars 1 forks source link

Error when checking currency of invalid content hosts #2

Closed stdevel closed 7 years ago

stdevel commented 7 years ago

When checking an invalid content host (e.g. the Foreman/Katello host), the plugin crashes:

DEBUG:check_katello_currency:Checking system 'st-katello01.stankowic.loc'...
Traceback (most recent call last):
  File "./check_katello_currency.py", line 547, in <module>
    main(options)
  File "./check_katello_currency.py", line 533, in main
    check_systems()
  File "./check_katello_currency.py", line 87, in check_systems
    SYSTEM_ERRATA[system]["content_facet_attributes"]["errata_counts"]
KeyError: 'content_facet_attributes'
stdevel commented 7 years ago

Finally fixed in commit 5ea6502716a6508b0a3add87cef529f9b34af1f3