Module: check_mk
Branch: master
Commit: af91ae3d96180f5fa520226481c6df70062f47c6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af91ae3d96180f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Oct 20 07:56:37 2016 +0200
Fixed issue in yesterdays commit
---
cmk_base/console.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmk_base/console.py b/cmk_base/console.py
index af66b41..7db75dc 100644
--- a/cmk_base/console.py
+++ b/cmk_base/console.py
@@ -70,8 +70,8 @@ def vverbose(text, *args, **kwargs):
# TODO: Inconsistent -> Adds newline and other functions don't
def warning(text, *args):
- stripped = reason.lstrip()
- indent = reason[:len(reason) - len(stripped)]
+ stripped = text.lstrip()
+ indent = text[:len(text) - len(stripped)]
text = "%s%s%sWARNING:%s %s\n" % (indent, tty.bold, tty.yellow, tty.normal,
stripped)