Module: check_mk
Branch: master
Commit: d14c7ab8e74b6edf311ec1d6c54eee5087b4b333
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d14c7ab8e74b6e…
Author: Andreas <ab(a)mathias-kettner.de>
Date: Mon Jun 11 09:47:53 2018 +0200
fixed incorrect cee/cme checking
Change-Id: Iebdbdc173241d2693ffc4183bea2b9dfe6f0252b
---
web/htdocs/modules.py | 2 +-
web/htdocs/views.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/modules.py b/web/htdocs/modules.py
index f0a4817..feff29f 100644
--- a/web/htdocs/modules.py
+++ b/web/htdocs/modules.py
@@ -41,7 +41,7 @@ internal_module_names = [
]
import cmk
-if cmk.is_enterprise_edition():
+if not cmk.is_raw_edition():
internal_module_names.append("sla")
pagehandlers = {}
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 92daba1..12aac91 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -37,7 +37,7 @@ from gui_exceptions import MKGeneralException, MKUserError,
MKInternalError
import cmk.paths
-if cmk.is_enterprise_edition():
+if not cmk.is_raw_edition():
import sla
# Datastructures and functions needed before plugins can be loaded
@@ -1665,7 +1665,7 @@ 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 cmk.is_enterprise_edition():
+ if not cmk.is_raw_edition():
sla_params = []
for cell in cells:
if cell.painter_name() in ["sla_specific",
"sla_fixed"]: