Module: check_mk
Branch: master
Commit: 71e5723f7d97ff9fea72f623abc8df59f8706aca
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=71e5723f7d97ff…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Jul 5 13:04:05 2018 +0200
Minor cleanup
Change-Id: I19fddd251ecd24641225fa18c7d1d373293fc4ca
---
checks/brocade_fcport | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/checks/brocade_fcport b/checks/brocade_fcport
index a2e3ff7..d12df26 100644
--- a/checks/brocade_fcport
+++ b/checks/brocade_fcport
@@ -126,7 +126,6 @@ def parse_brocade_fcport(info):
if_table = [x + ["", x[-2]] for x in if_info]
parsed = []
-
for index, phystate, opstate, admstate, txwords, rxwords, txframes, \
rxframes, notxcredits, rxcrcs, rxencinframes, rxencoutframes, \
c3discards, brocade_speed, portname, porttype, ifspeed in if_table:
@@ -177,7 +176,7 @@ def parse_brocade_fcport(info):
"islspeed": islspeed, # Might be None
"bbcredits": bbcredits, # Might be None
})
- except: # missing vital data. Skipping this port
+ except ValueError:
continue
return parsed