Module: check_mk
Branch: master
Commit: 4c9264c84f172b0fb41f0ee7dd6f6e92be317de9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4c9264c84f172b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Apr 25 10:19:00 2013 +0200
mkeventd: fix exception on empty hostname
---
mkeventd/bin/mkeventd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index 3e703d7..563a6f6 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -1492,7 +1492,7 @@ class EventServer:
backedhost = backedhost.lower()
# 2. Drop domain part (not applied to IP addresses!)
- if translation.get("drop_domain") and not backedhost[0].isdigit():
+ if translation.get("drop_domain") and backedhost and not
backedhost[0].isdigit():
backedhost = backedhost.split(".", 1)[0]
# 3. Regular expression conversion