Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 8b51e780 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 1d596d14
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
# 2021-07-15: rewritten for CMK 2.0
#
from typing import Dict
from typing import Dict, Optional
from cmk.base.plugins.agent_based.agent_based_api.v1.type_defs import (
DiscoveryResult,
CheckResult,
......@@ -35,13 +35,13 @@ _ps_state = {
}
def parse_cisco_wlc_power(string_table: StringTable) -> Dict[str, bool]:
ps = {}
def parse_cisco_wlc_power(string_table: StringTable) -> Optional[Dict[str, bool]]:
try:
ps1, ps1op, ps2, ps2op = string_table[0]
except IndexError:
return ps
return
ps = {}
if _ps_state.get(ps1):
ps.update({'1': _ps_state.get(ps1op)})
if _ps_state.get(ps2):
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment