Module: check_mk
Branch: master
Commit: 5939cee4e1c8883f20ba1b611d938e1430f889b5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5939cee4e1c888…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Aug 6 19:59:27 2015 +0200
pushover notifications: Fixed exception on host notifications
---
notifications/pushover | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/notifications/pushover b/notifications/pushover
index 243bad8..de73bbd 100755
--- a/notifications/pushover
+++ b/notifications/pushover
@@ -100,9 +100,9 @@ def get_text(context):
if "PARAMETER_URL_PREFIX" in context:
s += " <i>Link: </i>"
- s += "<a href=\"%s\">Host</a>" %
get_url("host", context)
+ s += "<a href=\"%s\">Host</a>" %
get_url("HOST", context)
if context["WHAT"] != "HOST":
- s += ", <a href=\"%s\">Service</a>" %
get_url("service", context)
+ s += ", <a href=\"%s\">Service</a>" %
get_url("SERVICE", context)
return substitute_context(s.replace("@", context["WHAT"]),
context)