Module: check_mk
Branch: master
Commit: 3581e7d302bdbba8f7ef654f4d469633b758c95e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3581e7d302bdbb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 25 10:11:06 2013 +0200
user attributes: Using default values to prevent exceptions
---
web/htdocs/userdb.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/userdb.py b/web/htdocs/userdb.py
index 64c82e9..0a1db01 100644
--- a/web/htdocs/userdb.py
+++ b/web/htdocs/userdb.py
@@ -544,8 +544,8 @@ def declare_custom_user_attrs():
vs = globals()[attr['type']](title = attr['title'], help =
attr['help'])
declare_user_attribute(attr['name'], vs,
user_editable = attr['user_editable'],
- show_in_table = attr['show_in_table'],
- topic = attr['topic'],
+ show_in_table = attr.get('show_in_table', False),
+ topic = attr.get('topic', 'personal'),
)
# .----------------------------------------------------------------------.