Skip to content

Commit

Permalink
adds missing get
Browse files Browse the repository at this point in the history
adds missing get
  • Loading branch information
thl-cmk committed Jun 29, 2023
1 parent edb09d4 commit d371044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmk/base/legacy_checks/cisco_asa_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def check_cisco_asa_conn(item, _no_params, parsed):
else: # CRIT if no IP is assigned
yield 2, "IP: Not found!"

state, state_readable = translate_status[values[2], (3, "N/A")]
state, state_readable = translate_status.get(values[2], (3, "N/A"))
yield state, "Status: %s" % state_readable


Expand Down

0 comments on commit d371044

Please sign in to comment.