Skip to content

Commit

Permalink
hp_blade_blades.py: fix typing error
Browse files Browse the repository at this point in the history
Change-Id: I5bedf26f3bfa8fd910ed1b0711d2f5e01d137de8
  • Loading branch information
logan-connolly committed Oct 23, 2024
1 parent c4b8fad commit 3b1ffad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmk/base/legacy_checks/hp_blade_blades.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def check_hp_blade_blades(item, params, info):
# Seems not to be implemented. The MIB file tells me that this value
# should represent a state but is empty. So set it to "fake" OK and
# display the other gathered information.
state = 2 if line[2] == "" else line[2]
state = saveint(state)
state = saveint(line[2] or "2")

snmp_state = hp_blade_status_map[state]
status = hp_blade_status2nagios_map[snmp_state]
Expand Down

0 comments on commit 3b1ffad

Please sign in to comment.