summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts/mauve.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2018-02-22 14:15:05 +0200
committerSteve Kemp <steve@steve.org.uk>2018-02-22 14:15:05 +0200
commit8fed21ce4af972799634aaa4b44c09184034734a (patch)
tree201fecf5064941e7be6a2664138ce1b5ed031bb7 /lib/custodian/alerts/mauve.rb
parent25b1792c7adca856bedadbeae1fa4de7972c8b5b (diff)
Removed obsolete code.
The intention of this series of changes is to allow subjects to be replaced for specific tests. The idea of replacement replaced the idea of a custom-prefix - so I've removed that code before proceeding.
Diffstat (limited to 'lib/custodian/alerts/mauve.rb')
-rw-r--r--lib/custodian/alerts/mauve.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/custodian/alerts/mauve.rb b/lib/custodian/alerts/mauve.rb
index 0aed390..697c7fb 100644
--- a/lib/custodian/alerts/mauve.rb
+++ b/lib/custodian/alerts/mauve.rb
@@ -2,7 +2,6 @@
require 'custodian/util/bytemark'
require 'custodian/util/dns'
-require 'custodian/util/prefix'
require 'digest/sha1'
@@ -228,10 +227,7 @@ module Custodian
id_key += test.class.to_s
alert.id = Digest::SHA1.hexdigest(id_key)
- # Look for a subject-prefix
- subject_prefix = Custodian::Util::Prefix.text()
-
- alert.subject = subject_prefix + subject
+ alert.subject = subject
alert.summary = "The #{test_type} test failed against #{test_host}"
#