Skip to content

Commit c5c9334

Browse files
author
Aakash Sabharwal
committed
overriding message string with a dummy var in beacon
1 parent 9f849aa commit c5c9334

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

graphite_beacon/alerts.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,8 @@ def __init__(self, reactor, **options):
7373

7474
LOGGER.debug("in BaseAlert Options init %s", str(options))
7575
LOGGER.debug("in BaseAlert Options reactor %s", str(reactor))
76-
77-
7876
LOGGER.debug("in BaseAlert Options %s", options.get('testvar'))
79-
LOGGER.debug("test ", self.reactor.options['testvar'])
80-
81-
self.testvar = "success"
77+
self.testvar = options.get('testvar')
8278
LOGGER.debug("self.testvar %s", self.testvar)
8379

8480
try:

graphite_beacon/templates/graphite/message.txt

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ History: {{ [ alert.convert(v) for v in alert.history[target][:100] ] }} {% end
2020

2121
View the graph: {{ alert.get_graph_url(alert.query) }}
2222

23+
View the graph: {{ alert.testvar }}
24+
2325
--
2426

2527
You can configure alerts for notifications in your configuration file.

0 commit comments

Comments
 (0)