Module: check_mk
Branch: master
Commit: baab8b4eedbef3c8f3119e9491795ae911453e40
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=baab8b4eedbef3…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Mar 7 09:44:15 2019 +0100
ibm_svc_enclosure: Fixed file formatting
Change-Id: Iebd0f1419d0ddde7eb8b74974662ec76b92ec119
---
checks/ibm_svc_enclosure | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/checks/ibm_svc_enclosure b/checks/ibm_svc_enclosure
index 9d6aeee..af0a92c 100644
--- a/checks/ibm_svc_enclosure
+++ b/checks/ibm_svc_enclosure
@@ -64,9 +64,8 @@ def check_ibm_svc_enclosure(item, _no_params, info):
for line in info:
if line[0] == item:
if len(line) == 9:
- line = line[:3] + [None, None, None] + line[3:7] + [
- None
- ] + line[7:] + [None, None, None, None]
+ line = line[:3] + [None, None, None
+ ] + line[3:7] + [None] + line[7:] + [None, None, None,
None]
elif len(line) == 13:
line = line + [None, None, None, None]
elif len(line) == 15:
@@ -93,8 +92,7 @@ def check_ibm_svc_enclosure(item, _no_params, info):
(online_canisters, total_canisters, 'canisters'),
(online_PSUs, total_PSUs, "PSUs"),
(online_fan_modules, total_fan_modules, 'fan modules'),
- (online_secondary_expander_modules,
- total_secondary_expander_modules,
+ (online_secondary_expander_modules, total_secondary_expander_modules,
'secondary expander modules'),
]:
if online is None: