Module: check_mk
Branch: master
Commit: 9f759c6f0fb2191a3657c5bbd0ee588b0054cfd8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9f759c6f0fb219…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Mon Feb 15 15:53:37 2016 +0100
#3076 FIX fixed broken views in check_mk raw edition
---
.werks/3076 | 8 ++++++++
ChangeLog | 1 +
web/plugins/views/commands.py | 2 ++
3 files changed, 11 insertions(+)
diff --git a/.werks/3076 b/.werks/3076
new file mode 100644
index 0000000..e7245c9
--- /dev/null
+++ b/.werks/3076
@@ -0,0 +1,8 @@
+Title: fixed broken views in check_mk raw edition
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.9i1
+Date: 1455547912
+Class: fix
+
diff --git a/ChangeLog b/ChangeLog
index 39197c4..8388acb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
Multisite:
* 3059 FIX: Fixed highlighting of availability timeline time slices
* 3175 FIX: Fix timeranges of graphs that are embedded in a dashboard...
+ * 3076 FIX: fixed broken views in check_mk raw edition
WATO:
* 3060 FIX: Folder properties: Fixed exception when a user has no alias set...
diff --git a/web/plugins/views/commands.py b/web/plugins/views/commands.py
index 0c19723..af56bff 100644
--- a/web/plugins/views/commands.py
+++ b/web/plugins/views/commands.py
@@ -717,6 +717,8 @@ def has_recurring_downtimes():
try:
wato.recurring_downtimes_types # Check if this exists
return True
+ except AttributeError:
+ return False
except NameError:
return False