Skip to content
Snippets Groups Projects
Commit aeab0f0e authored by Thomas Bellman's avatar Thomas Bellman
Browse files

nagios_report(): Fix exit code for empty statuses.

When the statuses parameter to the nagios_report() function in
trh_nagioslib is empty, we try to return UNKNOWN as the exit code.
However, we apparently had a brainfart and added one to the value
the .index() method gave us searching the NAGIOSCODES variable.
That's just incorrect; the position of the names in NAGIOSCODES
*is* the right exit code, no offset needed.  Fix that.
parent 75db06f3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment