diff options
author | Steve Kemp <steve@steve.org.uk> | 2018-02-22 14:23:06 +0200 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2018-02-22 14:23:06 +0200 |
commit | 74d9ba8651346e8a6653a32a70ea2216c4a45f61 (patch) | |
tree | 23bfb82522661ebeb170930879c39ed19341db24 /lib/custodian | |
parent | 04782ef9d184cf1de362f1a42fa8f48e5e7aa697 (diff) |
If a test has a subject used, then use it.
Diffstat (limited to 'lib/custodian')
-rw-r--r-- | lib/custodian/alerts/mauve.rb | 9 |
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}" # |