aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers/sms_aql.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-07-19 16:50:49 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-07-19 16:50:49 +0100
commit1c8bf33bd7663fcb67fe854d968670aa475173dd (patch)
treece3362715b27c97fd5525cc3f50d38be1ace4647 /lib/mauve/notifiers/sms_aql.rb
parent72654c0a6bdb83e27f16ea92d31e7127bd19ce19 (diff)
* Fixed supressed spelling mistakes (sic)
* Added require thin_parser to http_server * Fixed spurious thaw attempts in mauve_thread.
Diffstat (limited to 'lib/mauve/notifiers/sms_aql.rb')
-rw-r--r--lib/mauve/notifiers/sms_aql.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mauve/notifiers/sms_aql.rb b/lib/mauve/notifiers/sms_aql.rb
index d0cf630..9181be3 100644
--- a/lib/mauve/notifiers/sms_aql.rb
+++ b/lib/mauve/notifiers/sms_aql.rb
@@ -58,7 +58,7 @@ module Mauve
template_file = File.join(File.dirname(__FILE__),"templates","sms.txt.erb")
- txt += if File.exists?(template_file)
+ txt = if File.exists?(template_file)
ERB.new(File.read(template_file)).result(binding).chomp
else
logger.error("Could not find sms.txt.erb template")
@@ -74,7 +74,8 @@ module Mauve
#txt += others.map { |alert| alert.summary_one_line }.join(", ")
end
- txt += "link: https://alert.bytemark.co.uk/alerts"
+ # TODO: Fix link to be accurate.
+ # txt += "link: https://alert.bytemark.co.uk/alerts"
## @TODO: Add a link to acknowledge the alert in the text?
#txt += "Acknoweledge alert: "+