Module: check_mk
Branch: master
Commit: 3e26560b3edaa6a148619a550e71f1b4eb341a54
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3e26560b3edaa6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 27 17:54:03 2018 +0200
Fixed typo
Change-Id: Id48a14c0bd2b4c01aa8df169ed065c82dc78222f
---
cmk_base/discovery.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmk_base/discovery.py b/cmk_base/discovery.py
index 1c6ae4f..da640f3 100644
--- a/cmk_base/discovery.py
+++ b/cmk_base/discovery.py
@@ -652,11 +652,11 @@ def _discover_services(hostname, ipaddress, sources,
multi_host_sections, on_err
discovered_services.append((check_plugin_name, item, paramstring))
except (KeyboardInterrupt, MKTimeout):
raise
- except Exception:
+ except Exception, e:
if on_error == "raise":
raise
elif on_error == "warn":
- console.error("Discovery of '%s' failed: %s\n" %
(check_plugin_nam, e))
+ console.error("Discovery of '%s' failed: %s\n" %
(check_plugin_name, e))
return discovered_services