Module: check_mk
Branch: master
Commit: af9783099c30c308584a0a78936d45dd4c326012
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af9783099c30c3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jul 5 12:24:13 2017 +0200
Fixed errors found by pylint
Change-Id: I029190b21b3a4b6e255c98a212d84f219f3b53cd
---
cmk_base/inventory_plugins.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmk_base/inventory_plugins.py b/cmk_base/inventory_plugins.py
index 221ec20..22ccaf5 100644
--- a/cmk_base/inventory_plugins.py
+++ b/cmk_base/inventory_plugins.py
@@ -64,7 +64,7 @@ def load(): # pylint: disable=function-redefined
plugin_context = _new_inv_context(f)
known_plugins = inv_info.keys()
- load_plugin_includes(f, check_context)
+ load_plugin_includes(f, plugin_context)
execfile(f, plugin_context)
loaded_files.add(file_name)
@@ -110,10 +110,10 @@ def load_plugin_includes(check_file_path, plugin_context):
# inventory plugins may also use check includes. Try to find one.
if not os.path.exists(include_file_path):
- include_file_path = check_include_file_path(include_file_name)
+ include_file_path = checks.check_include_file_path(include_file_name)
try:
- execfile(include_file_path, check_context)
+ execfile(include_file_path, plugin_context)
except Exception, e:
console.error("Error in include file %s: %s\n", include_file_path,
e)
if cmk.debug.enabled():