Module: check_mk
Branch: master
Commit: c8dc9985c27c7c267d3ebccab1d61640078f6678
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c8dc9985c27c7c…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Mon Nov 12 14:56:26 2018 +0100
Add missing None check for werk 6417 to fix integration tests
Change-Id: I99bcb368bc44b6a153c2b28a204b594bf2169a19
---
cmk/gui/plugins/userdb/user_attributes.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmk/gui/plugins/userdb/user_attributes.py
b/cmk/gui/plugins/userdb/user_attributes.py
index 66e699a..3972a42 100644
--- a/cmk/gui/plugins/userdb/user_attributes.py
+++ b/cmk/gui/plugins/userdb/user_attributes.py
@@ -125,6 +125,8 @@ class DisableNotificationsUserAttribute(UserAttribute):
forth=self._transform_disable_notification)
def _transform_disable_notification(self, p):
+ if p is None:
+ return {}
if isinstance(p, bool):
if p:
return {"disable": True}