Module: check_mk
Branch: master
Commit: d77016c42d709b622a4b443d2c31a2c550fd03c6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d77016c42d709b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue May 16 10:14:10 2017 +0200
Updated werk #4658
Change-Id: Ia4c0039f34cba56dd8428f6570e60db24828e180
---
web/plugins/wato/bi.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/plugins/wato/bi.py b/web/plugins/wato/bi.py
index 0e0dd51..670c4a7 100644
--- a/web/plugins/wato/bi.py
+++ b/web/plugins/wato/bi.py
@@ -1568,7 +1568,8 @@ class ModeBIEditRule(ModeBI):
node_type, node_content = node
node_name = node_content[0]
pack = self.pack_containing_rule(node_name)
- if node_type == 'call' and not self.may_use_rules_in_pack(pack):
+ if node_type == 'call' and pack is not None and \
+ not self.may_use_rules_in_pack(pack):
packid = (pack['id'], pack['title'])
rules_without_permissions.setdefault(packid, [])
rules_without_permissions[packid].append(node_name)