Module: check_mk
Branch: master
Commit: 859e8d5b43e6258b986156882205da0eb59037bf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=859e8d5b43e625…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Thu Apr 18 21:31:52 2019 +0200
local: fix typo in test and comment in check
Change-Id: Id6ee6963c7530ecb14dfb3aa99c712a0d3102010
---
checks/local | 2 +-
tests/unit/checks/generictests/datasets/local_1.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/local b/checks/local
index fb76529..f6f6ba1 100644
--- a/checks/local
+++ b/checks/local
@@ -130,7 +130,7 @@ def parse_local(info):
state, state_msg = _sanitize_state(stripped_line[0])
item = stripped_line[1]
perfdata, perf_msg = _parse_perftxt(stripped_line[2])
- # convert eventually escaped newinfo_line chars to real newinfo_lines
+ # convert escaped newline chars
# (will be converted back later individually for the different cores)
text = " ".join(stripped_line[3:]).replace("\\n",
"\n")
if state_msg or perf_msg:
diff --git a/tests/unit/checks/generictests/datasets/local_1.py
b/tests/unit/checks/generictests/datasets/local_1.py
index 7d3f3a9..4b28ad0 100644
--- a/tests/unit/checks/generictests/datasets/local_1.py
+++ b/tests/unit/checks/generictests/datasets/local_1.py
@@ -15,7 +15,7 @@ info = [
['node_1', 'P', 'Some_yet_other_Service',
'temp=40;30;50|humidity=28;50:100;0:50;0;100'],
['node_2', 'P', 'Has-no-var', '-', 'This',
'has', 'no', 'variable'],
['node_2', 'P', 'No-Text', 'hirn=-8;-20'],
- ['rougue', 'P', 'D\'oh!', 'this is an invalid
metric|isotopes=0', 'I', 'messed', 'up!']
+ ['rogue', 'P', 'D\'oh!', 'this is an invalid
metric|isotopes=0', 'I', 'messed', 'up!']
]
@@ -75,7 +75,7 @@ checks = {
]),
]),
('D\'oh!', {}, [
- (3, "On node rougue: Invalid performance data: 'this is an invalid
metric'. Output is: I messed up!", [
+ (3, "On node rogue: Invalid performance data: 'this is an invalid
metric'. Output is: I messed up!", [
('isotopes', 0, None, None, None, None),
]),
]),