Module: check_mk
Branch: master
Commit: 1eeb0b443c4fcc26220fee0f82d5bdded54d6954
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1eeb0b443c4fcc…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Jul 31 13:32:44 2013 +0200
fixed unique alias name bug with timeperiods
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index b598315..d25072d 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -13622,7 +13622,7 @@ def is_alias_used(my_group, my_name, aliasname):
# Timeperiods
timeperiods = load_timeperiods()
for key, value in timeperiods.items():
- if value.get("alias") == aliasname and (my_group !=
"timeperiod" or my_name != key):
+ if value.get("alias") == aliasname and (my_group !=
"timeperiods" or my_name != key):
return False, _("This alias is already used in timeperiod %s.") %
key
# Roles