summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2018-02-22 14:23:06 +0200
committerSteve Kemp <steve@steve.org.uk>2018-02-22 14:23:06 +0200
commit74d9ba8651346e8a6653a32a70ea2216c4a45f61 (patch)
tree23bfb82522661ebeb170930879c39ed19341db24 /lib/custodian
parent04782ef9d184cf1de362f1a42fa8f48e5e7aa697 (diff)
If a test has a subject used, then use it.
Diffstat (limited to 'lib/custodian')
-rw-r--r--lib/custodian/alerts/mauve.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/custodian/alerts/mauve.rb b/lib/custodian/alerts/mauve.rb
index 697c7fb..13ac747 100644
--- a/lib/custodian/alerts/mauve.rb
+++ b/lib/custodian/alerts/mauve.rb
@@ -227,7 +227,16 @@ module Custodian
id_key += test.class.to_s
alert.id = Digest::SHA1.hexdigest(id_key)
+ #
+ # Set the subject of the alert
+ #
alert.subject = subject
+
+ #
+ # But allow it to be overwritten if something was specified.
+ #
+ alert.subject = test.get_subject() unless test.get_subject().nil?
+
alert.summary = "The #{test_type} test failed against #{test_host}"
#