Module: check_mk
Branch: master
Commit: e1e660b5f97f05c0f784fbea8640b0c5fcc513eb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e1e660b5f97f05…
Author: Andreas <ab(a)mathias-kettner.de>
Date: Mon Jun 11 15:05:37 2018 +0200
fixed broken integration test, couldn't handle cyclic dependencies
views.py<->sla.py
Change-Id: Iad893a93c23ffa71655d603fbcde9c7b9782b8c1
---
web/htdocs/views.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 12aac91..2565e85 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -37,9 +37,6 @@ from gui_exceptions import MKGeneralException, MKUserError,
MKInternalError
import cmk.paths
-if not cmk.is_raw_edition():
- import sla
-
# Datastructures and functions needed before plugins can be loaded
loaded_with_language = False
display_options = None
@@ -1665,7 +1662,9 @@ def show_view(view, show_heading = False, show_buttons = True,
if "host_name" in row:
row["host_inventory"] =
inventory.load_tree(row["host_name"])
+
if not cmk.is_raw_edition():
+ import sla
sla_params = []
for cell in cells:
if cell.painter_name() in ["sla_specific",
"sla_fixed"]: