Module: check_mk
Branch: master
Commit: 227f88d159438485527796684b46e8957822fff0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=227f88d1594384…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Jul 27 09:52:31 2018 +0200
Fixed and enabled relative-import warning.
Change-Id: I436f308c3b589e248f56f00ad0cbbb7578cc8811
---
cmk_base/data_sources/__init__.py | 2 +-
tests/pylint/pylintrc | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/cmk_base/data_sources/__init__.py b/cmk_base/data_sources/__init__.py
index 37f39e5..0269225 100644
--- a/cmk_base/data_sources/__init__.py
+++ b/cmk_base/data_sources/__init__.py
@@ -275,7 +275,7 @@ class DataSources(object):
hosts.append((self._hostname, self._ipaddress, self,
config.check_max_cachefile_age))
if nodes:
- import abstract
+ import cmk_base.data_sources.abstract as abstract
abstract.DataSource.set_may_use_cache_file()
# Special agents can produce data for the same check_plugin_name on the same
host, in this case
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 682b1cf..1df6709 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -19,7 +19,6 @@ disable=
no-else-return,
no-self-use,
protected-access,
- relative-import,
#---------------------------------------------------------------------------
# We should really enable this, there could be some real exceptions waiting
# to be thrown. But some work is needed first to sprinkle abc annotations